:root {
    --primary: #5B2D8B;
    --primary-dark: #3E1F66;
    --primary-light: #8E6BBE;
    --accent: #6F4BA8;
    --bg-light: #F8F9FA;
    --surface: #FFFFFF;
    --text: #2F184E;
    --text-muted: #6F4BA8;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(91, 45, 139, 0.1);
    --shadow: 0 8px 32px 0 rgba(91, 45, 139, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    background: var(--surface);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-container img {
    height: 32px;
}

.title-group h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.title-group p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.search-container {
    max-width: 500px;
    width: 100%;
}

#search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: var(--text);
    outline: none;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

#search-input:focus {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 45, 139, 0.1);
}

.tab-navigation {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    background: var(--bg-light);
}

.tabs-container {
    background: #EDF2F7;
    padding: 4px;
    border-radius: 12px;
    display: flex;
    gap: 4px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    padding: 0.6rem 2rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    position: relative;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary-dark);
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

main {
    padding: 3rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.department {
    width: 100%;
    margin-bottom: 4rem;
}

.department-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.department-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 2px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--surface);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 25px -5px rgba(91, 45, 139, 0.1);
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--primary-dark);
}

.card-header .role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4A5568;
}

.card-footer {
    border-top: 1px solid #EDF2F7;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.email-btn {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 24, 78, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: var(--surface);
    border-radius: 16px;
    max-width: 550px;
    width: 100%;
    padding: 3rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: #A0AEC0;
    cursor: pointer;
    transition: color 0.2s;
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .search-container {
        max-width: 100%;
    }

    main {
        padding: 1rem;
    }

    .tabs-container {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        padding: 0.6rem 0.5rem;
    }
}