:root {
    --bg-primary: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
}

.glass-card {
    background: var(--white);
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

h1,
h2,
h3 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.input-group select option {
    background: white;
    color: var(--text-primary);
}

/* Navbar & Header - Premium Redesign */
.main-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    padding: 2px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Design */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.site-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.03em;
}

.logo-text span {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav Link Refinements */
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links>a,
.dropdown-trigger {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
}

.nav-links>a:hover,
.dropdown-trigger:hover {
    color: var(--accent);
    background: #f1f5f9;
}

.nav-links a.active-link,
.dropdown-trigger.active-link {
    color: var(--accent);
    background: rgba(37, 99, 235, 0.08);
}

.nav-links>a svg,
.dropdown-trigger svg:not(.chevron) {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-links>a:hover svg,
.dropdown-trigger:hover svg:not(.chevron) {
    opacity: 1;
}

/* Mega Dropdown Design */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger .chevron {
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.nav-dropdown:hover .dropdown-trigger .chevron {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: white;
    min-width: 480px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.dropdown-grid a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.dropdown-grid a:hover {
    background: #f8fafc;
    border-color: #f1f5f9;
    transform: translateY(-1px);
}

.drop-icon {
    width: 38px;
    height: 38px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
}

.dropdown-grid a:hover .drop-icon {
    background: white;
    color: var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.drop-text {
    display: flex;
    flex-direction: column;
}

.drop-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.9rem;
}

.drop-desc {
    font-size: 0.75rem;
    color: #94a3b8;
}

.dropdown-grid a.active-link {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.1);
}

.dropdown-grid a.active-link .drop-title {
    color: var(--accent);
}

.mobile-only-link {
    display: none;
}

/* Action Buttons */
.nav-actions {
    margin-left: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid #e2e8f0;
}

.shadow-btn {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
}

.shadow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.mobile-header-btn {
    display: none;
}

.mobile-header-actions {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

/* Hamburger bars */
.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle .bar+.bar {
    margin-top: 4px;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Responsiveness - Redefined */
@media (max-width: 1150px) {
    .dropdown-content {
        min-width: 380px;
    }
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
        z-index: 1201;
    }

    .nav-actions {
        display: none;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: white;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        padding: 6rem 1.5rem;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        align-items: flex-start;
        overflow-y: auto;
        gap: 0.75rem;
        z-index: 1200;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        margin-left: auto;
        z-index: 1201;
    }

    .mobile-header-btn {
        display: flex !important;
        margin-right: 0.5rem;
        z-index: 1201;
    }

    .mobile-only-link {
        display: flex !important;
        width: 100%;
        padding: 0.85rem 1rem;
        background: rgba(37, 99, 235, 0.05) !important;
        border: 1px solid rgba(37, 99, 235, 0.1) !important;
        border-radius: 10px;
        margin-top: 1rem;
        text-decoration: none;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-links>a,
    .dropdown-trigger {
        width: 100%;
        font-size: 1rem;
        padding: 0.85rem 1rem;
        justify-content: flex-start;
    }

    .dropdown-content {
        position: static;
        min-width: 100%;
        transform: none;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        background: transparent;
        border-radius: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-dropdown.mobile-active .dropdown-content {
        max-height: 800px;
        padding-top: 0.5rem;
        margin-top: 0.25rem;
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 1.5rem;
    }

    .dropdown-grid a {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .drop-icon {
        width: 30px;
        height: 30px;
    }

    .drop-icon svg {
        width: 14px;
        height: 14px;
    }

    .drop-desc {
        display: none;
    }

    .nav-dropdown.mobile-active .chevron {
        transform: rotate(180deg);
    }
}

/* Profile Images - Circular with Full Face Visibility */
.profile-image,
.aspirant-card img,
.photo-wrapper img,
.profile-photo img {
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

/* Ensure containers support circular images */
.photo-wrapper,
.profile-photo,
.aspirant-card .photo {
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

/* Alternative: Keep rectangular containers but make images circular */
.aspirant-card .photo img,
.photo-wrapper img {
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    /* Slightly favor top positioning for headshots */
}

/* For profile pages - larger circular images */
.profile-photo {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    /* Ensures perfect circle */
}

.profile-photo img {
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

/* Card photos - smaller circular thumbnails */
.aspirant-card .photo {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

/* Ensure badges don't get clipped by circular borders */
.photo-wrapper .badge,
.aspirant-card .photo .badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
}

@media (max-width: 768px) {
    .nav-links a {
        font-size: 1rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .aspirant-grid {
        grid-template-columns: 1fr;
    }

    .survey-grid {
        grid-template-columns: 1fr !important;
    }

    .glass-card {
        padding: 1.25rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Hide scrollbars but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.success {
    border-left-color: #22c55e;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}