
/* ===== CSS Variables ===== */
:root {
    --primary-color: #1967d2;
    --primary-hover: #0d47a1;
    --secondary-color: #696969;
    --text-dark: #202124;
    --text-light: #696969;
    --white: #ffffff;
    --border-color: #e0e6f7;
    --bg-light: #f5f7fc;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Main Navbar ===== */
.superio-navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-primary);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* ===== Logo Section ===== */
.navbar-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: black;
    font-weight: 700;
    font-size: 24px;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 32px;
    height: 32px;
    stroke: black;
}

.logo-text {
    color: var(--text-dark);
}

/* ===== Desktop Navigation Menu ===== */
.navbar-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary-color);
}

.dropdown-arrow {
    transition: var(--transition);
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ===== Dropdown Menu ===== */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
    margin-top: 10px;
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* ===== Navbar Actions ===== */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== Upload Resume Button ===== */
.btn-upload {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-dark);
    border: 1px solid black;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-upload:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* ===== Sign Up Button ===== */
.btn-signup {
    padding: 10px 25px;
    background: black;
    color: var(--white);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-signup:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== User Dropdown ===== */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.user-name-text {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

.user-arrow {
    transition: var(--transition);
}

.user-btn:hover .user-arrow {
    transform: rotate(180deg);
}

/* ===== User Dropdown Menu ===== */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 280px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 0;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-full-name {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email-text {
    color: var(--text-light);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.user-dropdown-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.link-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.logout-link {
    color: #dc3545;
}

.logout-link:hover {
    background: #fff5f5;
    color: #dc3545;
}

/* ===== Mobile Menu Toggle ===== */
.mobile-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: var(--transition);
}

.toggle-line {
    width: 100%;
    height: 3px;
    background-color: black;
    border-radius: 2px;
    transition: var(--transition);
}

/* Active state - transforms into X */
.mobile-toggle.active .toggle-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .toggle-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}


/* ===== Mobile Overlay ===== */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    transition: var(--transition);
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== Mobile Menu ===== */
/* ===== Mobile Overlay ===== */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

.mobile-menu.active {
    right: 0;
}

/* ===== Mobile Submenu ===== */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-top: 8px;
}

.mobile-submenu.active {
    max-height: 500px; /* Adjust based on your content */
}

.mobile-arrow {
    transition: transform 0.3s ease;
}

/* ===== Mobile Header ===== */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 20px;
}

.mobile-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-dark);
    transition: var(--transition);
}

.mobile-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* ===== Mobile User Section ===== */
.mobile-user-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== Mobile Navigation List ===== */
.mobile-nav-list {
    list-style: none;
    padding: 15px 0;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.mobile-arrow {
    transition: var(--transition);
}

.mobile-dropdown-toggle.active .mobile-arrow {
    transform: rotate(180deg);
}

.mobile-icon {
    margin-right: 10px;
}

/* ===== Mobile Submenu ===== */
.mobile-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-light);
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu-link {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.mobile-submenu-link:hover {
    background: var(--white);
    color: var(--primary-color);
    padding-left: 45px;
}

/* ===== Mobile Divider ===== */
.mobile-divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 0;
}

/* ===== Mobile Logout ===== */
.mobile-logout {
    color: #dc3545;
}

.mobile-logout:hover {
    background: #fff5f5;
    color: #dc3545;
}

/* ===== Mobile Buttons ===== */
.mobile-btn-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    margin: 15px 20px;
    background: transparent;
    color: var(--text-dark);
    border: 1px solid black;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-btn-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    margin: 15px 20px;
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-btn-upload:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-btn-signup {
    display: block;
    padding: 12px 20px;
    margin: 0 20px 20px;
    background: black;
    color: var(--white);
    border: none;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.mobile-btn-signup:hover {
    background: var(--primary-hover);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .navbar-menu {
        display: none;
    }

    /* .navbar-actions {
        display: none;
    } */
     /* Instead of hiding all navbar-actions, hide only specific children */
    .navbar-actions > *:not(.mobile-toggle) {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        height: 70px;
        padding: 0 15px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .mobile-menu {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        height: 65px;
    }

    .logo-text {
        font-size: 18px;
    }

    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Body Lock (when mobile menu is open) ===== */
body.mobile-menu-open {
    overflow: hidden;
}

/* ===== Focus Styles for Accessibility ===== */
.nav-link:focus,
.btn-upload:focus,
.btn-signup:focus,
.user-btn:focus,
.mobile-toggle:focus,
.mobile-nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== Active Link Styling ===== */
.nav-link.active,
.mobile-nav-link.active {
    color: red;
    font-weight: 600;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.dropdown-content {
    animation: fadeIn 0.3s ease;
}

.mobile-menu.active {
    animation: slideIn 0.3s ease;
}

/* ===== Print Styles ===== */
@media print {
    .superio-navbar {
        display: none;
    }
}