/* ================================
   MODERN NAVIGATION BAR STYLES
   ================================ */

.modern-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(226, 232, 240, 0.8);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 70px;
}

/* Brand Styles */
.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-link:hover {
    transform: scale(1.02);
}

.brand-logo {
    height: 36px;
    width: auto;
    max-width: 36px;
    padding: 4px;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4b4a49, #4b4a49);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text-footer {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #000000;
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.nav-link i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.login-btn {
    background: linear-gradient(135deg, #f83600, #fe8c00);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, #fe8c00, #f83600);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle .fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: #000000 !important;
}

.dropdown:hover .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.8);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background: rgba(37, 99, 235, 0.05);
    color: #f83600;
}

.dropdown-link i {
    width: 16px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.dropdown-divider {
    height: 1px;
    background: rgba(226, 232, 240, 0.8);
    margin: 8px 0;
}

/* iOS-specific styles for dropdown chevron */
@supports (-webkit-touch-callout: none) {
    .dropdown-toggle .fa-chevron-down {
        color: #000000 !important;
    }
}

/* Additional iOS Safari specific styling */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
    _::-webkit-full-page-media, _:future, :root .dropdown-toggle .fa-chevron-down {
        color: #000000 !important;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 4px;
}

.mobile-menu-toggle:hover {
    background: rgba(99, 102, 241, 0.08);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #64748b;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 4px;
}

.mobile-menu-toggle:hover {
    background: rgba(99, 102, 241, 0.08);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #64748b;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 1200;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.mobile-brand {
    display: flex;
    align-items: center;
}

.mobile-logo {
    height: 32px;
    width: auto;
    margin-right: 8px;
    border-radius: 6px;
}

.mobile-brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f83600, #fe8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(37, 99, 235, 0.05);
    color: #f83600;
    border-left-color: #f83600;
}

.mobile-nav-link.login {
    background: linear-gradient(135deg, #f83600, #fe8c00);
    color: white;
    margin: 16px 24px;
    border-radius: 12px;
    border-left: none;
    justify-content: center;
    font-weight: 600;
}

.mobile-nav-link.login:hover {
    background: linear-gradient(135deg, #fe8c00, #f83600);
    transform: translateY(-1px);
}

.mobile-nav-link.logout {
    color: #ef4444;
    border-left-color: transparent;
}

.mobile-nav-link.logout:hover {
    background: rgba(239, 68, 68, 0.05);
    color: #dc2626;
    border-left-color: #ef4444;
}

.mobile-nav-link i {
    width: 20px;
    font-size: 1rem;
    opacity: 0.8;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(37, 99, 235, 0.05);
    color: #f83600;
    font-weight: 600;
    border-left: 3px solid #f83600;
}

.mobile-user-info i {
    font-size: 1.1rem;
}

.mobile-nav-divider {
    height: 1px;
    background: rgba(226, 232, 240, 0.8);
    margin: 16px 24px;
}

/* Mobile Menu Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .brand-logo {
        height: 32px;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
}

/* Ensure main content doesn't hide behind fixed navbar */
body {
    padding-top: 70px;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
}

/* Support Ticket Badge Styles */
.nav-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
}

/* Mobile badge adjustments */
@media (max-width: 768px) {
    .nav-badge {
        font-size: 0.7rem;
        min-width: 16px;
        height: 16px;
        padding: 1px 5px;
        margin-left: 4px;
    }
}

/* End of Navigation Styles */

