@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

.navbar {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar * {
    box-sizing: border-box;
    font-family: inherit;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.nav-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-text {
    font-size: 18px;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-sub {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: none;
}

@media (min-width: 768px) {
    .brand-sub {
        display: inline;
    }
}

.nav-links {
    display: flex;
    gap: 32px;
    flex: 1;
}

.nav-main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex: 1;
}

.nav-main-auth {
    justify-content: flex-end;
}

.nav-links-dropdown {
    position: relative;
}

.nav-links-toggle {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.nav-links-dropdown.open .nav-links-toggle {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.nav-links-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
    padding: 6px;
    display: none;
    z-index: 1002;
}

.nav-links-dropdown.open .nav-links-menu {
    display: grid;
    gap: 4px;
}

.nav-links-item {
    display: block;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-decoration: none;
    background: #ffffff;
    cursor: pointer;
    width: 100%;
}

.nav-links-item:hover {
    background: #f9fafb;
}

.nav-links-item.active {
    color: #ef4444;
    background: #fef2f2;
    font-weight: 700;
}

.nav-links-item-cta {
    background: #ef4444;
    color: #ffffff;
}

.nav-links-item-cta:hover {
    background: #dc2626;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #374151;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar.mobile-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar.mobile-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.navbar.mobile-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 8px 0;
}

.nav-link:hover {
    color: #ef4444;
}

.nav-link.active {
    color: #ef4444;
    font-weight: 700;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ef4444;
    border-radius: 999px;
}

.nav-link-alert {
    color: #dc2626;
    font-weight: 700;
}

.nav-logout-form {
    margin: 0;
}

.nav-mobile-chips {
    display: none;
    align-items: center;
    gap: 8px;
}

.nav-notify-text {
    display: none;
}

.nav-notify-slot {
    display: inline-flex;
    align-items: center;
}

.nav-welcome {
    margin: 0;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-welcome-mobile {
    display: none;
    margin: 0;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 56vw;
}

.nav-status {
    position: relative;
}

.nav-status-btn {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.nav-status.open .nav-status-btn {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.nav-status-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
    padding: 6px;
    display: none;
    z-index: 1002;
}

.nav-status.open .nav-status-menu {
    display: grid;
    gap: 4px;
}

.nav-status-item {
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    background: #ffffff;
    cursor: pointer;
}

.nav-status-item:hover {
    background: #f9fafb;
}

.nav-status-item:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f3f4f6;
}

.nav-cta {
    background: #ef4444;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
    .nav-brand-link {
        gap: 6px;
    }

    .nav-brand-link .brand-text {
        display: inline;
        font-size: 14px;
        letter-spacing: -0.2px;
    }

    .nav-brand-link .brand-logo {
        width: 40px;
        height: 40px;
    }

    .nav-wrapper {
        gap: 12px;
    }

    .nav-mobile-chips {
        display: flex;
        margin-left: auto;
    }

    .nav-main {
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        display: none;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
        z-index: 1001;
        max-height: none;
        overflow: visible;
    }

    .navbar.mobile-open .nav-main {
        display: grid;
        gap: 12px;
        justify-content: stretch;
        align-content: start;
        align-items: stretch;
        justify-items: stretch;
    }

    .nav-main-auth {
        justify-content: stretch;
        align-items: stretch;
    }

    .nav-links {
        display: grid;
        gap: 2px;
    }

    .nav-link {
        padding: 9px 10px;
        border-radius: 8px;
    }

    .nav-link:hover {
        background: #f9fafb;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .navbar.navbar-auth .nav-welcome-mobile {
        display: block;
        margin-left: auto;
        max-width: 30vw;
    }

    .navbar.navbar-auth .nav-toggle {
        margin-left: 8px;
    }

    .nav-welcome-mobile {
        display: none;
    }

    .nav-notify-btn {
        border: 1px solid #fde68a;
        background: #fffbeb;
        color: #92400e;
        box-shadow: none;
        padding: 6px 10px;
        font-size: 11px;
        font-weight: 700;
        gap: 6px;
        min-height: 0;
    }

    .nav-notify-text {
        display: inline;
    }

    .nav-main .nav-welcome {
        display: none;
    }

    .nav-cta {
        display: inline-block;
        width: 100%;
        text-align: center;
        padding: 11px 14px;
    }

    .nav-welcome {
        border-radius: 8px;
        text-align: center;
    }

    .nav-status {
        width: 100%;
        justify-self: stretch;
    }

    .nav-links-dropdown {
        width: 100%;
        justify-self: stretch;
    }

    .nav-links-toggle {
        display: block;
        width: 100%;
        min-height: 40px;
        border-radius: 10px;
        text-align: center;
        font-size: 13px;
        font-weight: 700;
    }

    .nav-links-menu {
        display: none;
        gap: 6px;
        position: static;
        margin-top: 8px;
        width: 100%;
        border: 1px solid #e5e7eb;
        padding: 6px;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: none;
        max-height: min(52vh, 360px);
        overflow-y: auto;
    }

    .nav-links-dropdown.open .nav-links-menu {
        display: grid;
    }

    .nav-links-item {
        border-radius: 8px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .nav-status-btn {
        width: 100%;
        min-height: 40px;
        border-radius: 10px;
        text-align: center;
    }

    .nav-status-menu {
        position: static;
        margin-top: 6px;
        width: 100%;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 6px;
        box-shadow: none;
    }
}
