body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    padding: 2rem;
    margin: 0;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    background: linear-gradient(to top, #ffffff 0%, rgba(255,255,255,0) 15%), 
                radial-gradient(circle at 70% 30%, rgba(128, 0, 128, 0.1), transparent 40%),
                radial-gradient(circle at 30% 70%, rgba(0, 0, 255, 0.1), transparent 40%),
                #f7f8ff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem 2.5rem;
}

.header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.search-input, .filter-select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    width: 100%;
}

.search-input:focus, .filter-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.employee-card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Makes card look clickable */
}

.employee-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.employee-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 0 0 3px #fff;
}

.employee-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.employee-position {
    color: #3b82f6;
    font-weight: 500;
    margin-top: 0.25rem;
}

.employee-details {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #4b5563;
    text-align: left;
    width: 100%;
    padding: 0 1rem;
}

.employee-details p {
    margin: 0;
    margin-bottom: 0.25rem;
}

.employee-details strong {
    font-weight: 600;
}

.no-employees {
    text-align: center;
    color: #6b7280;
    grid-column: 1 / -1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #aaa;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.modal-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid #3b82f6;
}

.modal-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.modal-position {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.modal-info {
    text-align: left;
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.5;
}

.modal-info p {
    margin-bottom: 0.5rem;
}

.modal-info strong {
    font-weight: 700;
    color: #1f2937;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .header {
        flex-direction: row;
    }
    .header h1 {
        margin-bottom: 0;
    }
    .controls {
        flex-direction: row;
        gap: 1rem;
    }
    .search-input, .filter-select {
        width: auto;
    }
}