* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff006e 0%, #8338ec 25%, #3a86ff 50%, #06ffa5 75%, #ffbe0b 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    padding: 20px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(255, 1, 110, 0.3), 0 0 60px rgba(51, 134, 255, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #ff006e 0%, #8338ec 50%, #3a86ff 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

header h1 {
    font-size: 2.8em;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

main {
    padding: 40px;
}

.form-section {
    background: linear-gradient(135deg, #06ffa5 0%, #00d4ff 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(6, 255, 165, 0.2);
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.form-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.8em;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

#employeeForm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    position: relative;
    z-index: 1;
}

#employeeForm input {
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    transition: all 0.3s ease;
}

#employeeForm input:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    background: white;
    transform: translateY(-2px);
}

#employeeForm button {
    background: linear-gradient(135deg, #ff006e 0%, #ffbe0b 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 1, 110, 0.3);
}

#employeeForm button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 1, 110, 0.5);
}

#employeeForm button:active {
    transform: translateY(-1px);
}

.employees-section h2 {
    color: #ff006e;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 700;
}

.search-bar {
    margin-bottom: 25px;
}

.search-bar input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #3a86ff;
    border-radius: 10px;
    font-size: 1em;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.1);
}

.search-bar input:focus {
    outline: none;
    border-color: #ff006e;
    box-shadow: 0 6px 25px rgba(255, 1, 110, 0.3);
}

#employeesTable {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

#employeesTable thead {
    background: linear-gradient(135deg, #3a86ff 0%, #8338ec 100%);
}

#employeesTable th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    color: white;
    border-bottom: none;
    font-size: 1.05em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#employeesTable td {
    padding: 16px 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 500;
}

#employeesTable tbody tr {
    transition: all 0.3s ease;
}

#employeesTable tbody tr:hover {
    background: linear-gradient(90deg, rgba(6, 255, 165, 0.1), rgba(58, 134, 255, 0.1));
    box-shadow: inset 0 4px 12px rgba(58, 134, 255, 0.1);
}

.actions {
    display: flex;
    gap: 12px;
}

.edit-btn,
.delete-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edit-btn {
    background: linear-gradient(135deg, #06ffa5 0%, #00d4ff 100%);
    color: white;
    box-shadow: 0 6px 15px rgba(6, 255, 165, 0.3);
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 255, 165, 0.5);
}

.delete-btn {
    background: linear-gradient(135deg, #ff006e 0%, #ff4757 100%);
    color: white;
    box-shadow: 0 6px 15px rgba(255, 1, 110, 0.3);
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 1, 110, 0.5);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #ff006e;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #8338ec;
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 25px;
    color: #ff006e;
    font-size: 1.8em;
    font-weight: 700;
}

#editForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#editForm input {
    padding: 14px 16px;
    border: 2px solid #3a86ff;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
}

#editForm input:focus {
    outline: none;
    border-color: #ff006e;
    box-shadow: 0 0 15px rgba(255, 1, 110, 0.3);
    transform: translateY(-2px);
}

#editForm button {
    background: linear-gradient(135deg, #ff006e 0%, #8338ec 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(255, 1, 110, 0.3);
}

#editForm button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 1, 110, 0.5);
}

.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: #8338ec;
    font-size: 1.2em;
    font-weight: 600;
}

@media (max-width: 768px) {
    #employeesTable {
        font-size: 0.9em;
    }

    #employeesTable th,
    #employeesTable td {
        padding: 12px 8px;
    }

    header h1 {
        font-size: 1.8em;
    }

    main {
        padding: 20px;
    }

    .form-section {
        padding: 20px;
    }

    #employeeForm {
        grid-template-columns: 1fr;
    }
}
