/* ===== METINGZ NAVBAR STYLES - PROFESSIONAL BUSINESS STANDARD ===== */
/* ===== FIXED FOOTER ALWAYS VISIBLE AT BOTTOM ===== */

/* ===== NAVBAR CONTAINER ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: #ffffff;
    border-bottom: 2px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: var(--z-fixed);
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 250ms ease;
}

.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom-color: #1a56db;
}

/* ===== NAVBAR LEFT SIDE ===== */
.navbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    height: 100%;
}

/* Menu Toggle Button */
.menu-toggle-navbar {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 150ms ease;
    color: #111827;
}

.menu-toggle-navbar:hover {
    background: #eff6ff;
    color: #1a56db;
}

.menu-toggle-navbar svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Professional Logo */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    transition: all 150ms ease;
    border-radius: 8px;
}

.logo-link:hover {
    background: #eff6ff;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a56db;
    letter-spacing: -0.5px;
}

.logo-text:hover {
    color: #1e40af;
}

/* ===== NAVBAR RIGHT SIDE ===== */
.navbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    height: 100%;
}

/* Credits Display */
.credits-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f3ff;
    border: 1px solid #7e3af2;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 150ms ease;
}

.credits-display:hover {
    background: #7e3af2;
    transform: translateY(-1px);
}

.credits-display:hover .credits-amount {
    color: #ffffff;
}

.credits-icon {
    font-size: 16px;
    color: #7e3af2;
}

.credits-display:hover .credits-icon {
    color: #ffffff;
}

.credits-amount {
    font-weight: 700;
    color: #7e3af2;
    font-size: 14px;
}

/* Auth Links */
.auth-links {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.btn-login {
    background: transparent;
    color: #1a56db;
    border: 2px solid #1a56db;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 150ms ease;
    text-decoration: none;
}

.btn-login:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}

.btn-register {
    background: #1a56db;
    color: #ffffff;
    border: 2px solid #1a56db;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 150ms ease;
    text-decoration: none;
}

.btn-register:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ===== USER SECTION ===== */
.user-section {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

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

.dropbtn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #111827;
    transition: all 150ms ease;
}

.dropbtn:hover {
    border-color: #1a56db;
    background: #eff6ff;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #eff6ff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1a56db;
}

.user-avatar svg {
    width: 16px;
    height: 16px;
    color: #1a56db;
}

.username {
    font-weight: 600;
    color: #111827;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    color: #6b7280;
    transition: transform 150ms ease;
}

.dropbtn:hover .dropdown-arrow {
    color: #1a56db;
    transform: translateY(1px);
}

/* Dropdown Content */
.dropdown-content {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 240px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 250ms ease;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

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

.user-info {
    padding: var(--space-4);
    background: #eff6ff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.user-avatar-large {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1a56db;
}

.user-avatar-large svg {
    width: 18px;
    height: 18px;
    color: #1a56db;
}

.user-details {
    flex: 1;
}

.user-details strong {
    display: block;
    color: #111827;
    font-size: 13px;
    margin-bottom: 2px;
}

.user-details small {
    display: block;
    color: #374151;
    font-size: 12px;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0 var(--space-4);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px var(--space-4);
    color: #111827;
    text-decoration: none;
    transition: all 150ms ease;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #1a56db;
}

.dropdown-item svg {
    width: 14px;
    height: 14px;
    color: #6b7280;
}

.dropdown-item:hover svg {
    color: #1a56db;
}

.dropdown-item.logout-link {
    color: #dc2626;
}

.dropdown-item.logout-link:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dropdown-item.logout-link svg {
    color: #dc2626;
}

/* ===== VERTICAL MENU CONTAINER - FIXED STRUCTURE ===== */
.vertical-menu-container {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    z-index: var(--z-dropdown);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 250ms ease;
    overflow: hidden;
}

.vertical-menu-container.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Vertical Menu Content - FIXED LAYOUT */
.vertical-menu-content {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: var(--z-dropdown);
}

/* Menu Header */
.menu-header {
    padding: var(--space-4) var(--container-padding);
    background: #1a56db;
    border-bottom: 1px solid #1e40af;
    flex-shrink: 0;
}

.menu-header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.menu-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-icon-large {
    font-size: 24px;
    color: #ffffff;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.logo-subtitle {
    color: #ffffff;
    font-size: 11px;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Menu User Info */
.menu-user-info {
    background: #eff6ff;
    border: 1px solid #1a56db;
    border-radius: 8px;
    padding: var(--space-4);
    margin: var(--space-4) var(--container-padding) 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.menu-user-avatar {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1a56db;
}

.menu-user-avatar svg {
    width: 18px;
    height: 18px;
    color: #1a56db;
}

.menu-user-details {
    flex: 1;
}

.menu-user-details h4 {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.menu-user-details p {
    color: #374151;
    font-size: 12px;
    margin: 0;
    line-height: 1.2;
}

/* Scrollable Menu Area - FIXED HEIGHT CALCULATION */
.menu-scrollable-area {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    background: #ffffff;
    padding-bottom: 0; /* Remove padding since footer is fixed */
}

/* Menu Navigation */
.menu-navigation {
    padding: var(--space-4) var(--container-padding);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    background: #ffffff;
    min-height: auto; /* Remove fixed height */
}

.menu-section {
    margin-bottom: var(--space-2);
}

.section-title {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 var(--space-3) 4px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list li {
    margin-bottom: 2px;
}

/* MENU ITEM */
.menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    transition: all 150ms ease;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.menu-item:hover {
    background: #eff6ff;
    color: #1a56db;
    transform: translateX(2px);
}

.menu-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-icon svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.menu-item:hover .menu-icon svg {
    color: #1a56db;
}

.menu-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}

.menu-badge {
    background: #eff6ff;
    color: #1a56db;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.menu-badge.premium {
    background: #f0fdf4;
    color: #059669;
}

/* ===== FIXED FOOTER - ALWAYS VISIBLE ===== */
.menu-footer {
    position: sticky; /* Changed to sticky */
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px var(--container-padding);
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    flex-shrink: 0;
    z-index: 2;
    height: 65px; /* Fixed height for footer */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: auto; /* Push to bottom in flex container */
}

.menu-help {
    margin-bottom: 6px;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color 150ms ease;
    padding: 4px 0;
}

.help-link:hover {
    color: #1a56db;
}

.help-link svg {
    width: 12px;
    height: 12px;
    color: #6b7280;
}

.help-link:hover svg {
    color: #1a56db;
}

.menu-version {
    text-align: center;
}

.menu-version small {
    color: #6b7280;
    font-size: 10px;
    font-weight: 500;
}

/* Overlay for Mobile */
.menu-overlay {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: calc(var(--z-dropdown) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all 250ms ease;
}

.vertical-menu-container.open ~ .menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Desktop specific styles */
@media (min-width: 1025px) {
    .vertical-menu-container {
        width: 280px;
        height: calc(100vh - var(--navbar-height));
        transform: translateX(-100%);
    }
    
    .vertical-menu-container.open {
        transform: translateX(0);
    }
    
    .vertical-menu-content {
        border-top: none;
        border-right: 1px solid #e5e7eb;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    }
    
    .menu-overlay {
        display: none;
    }
    
    .menu-scrollable-area {
        max-height: calc(100vh - var(--navbar-height) - 140px);
    }
    
    /* Fixed footer on desktop */
    .menu-footer {
        position: sticky;
        bottom: 0;
        height: 65px;
        padding: 12px var(--container-padding);
        background: #f8fafc;
        border-top: 1px solid #e5e7eb;
    }
}

/* Tablet specific styles */
@media (max-width: 1024px) and (min-width: 768px) {
    .vertical-menu-container {
        width: 320px;
        max-width: 100%;
    }
    
    .menu-scrollable-area {
        max-height: calc(100vh - var(--navbar-height) - 140px);
    }
    
    /* Fixed footer on tablet */
    .menu-footer {
        position: sticky;
        bottom: 0;
        height: 65px;
        padding: 12px var(--container-padding);
        background: #f8fafc;
        border-top: 1px solid #e5e7eb;
    }
}

/* Mobile specific styles - FIXED FOOTER */
@media (max-width: 767px) {
    :root {
        --navbar-height: 60px;
        --container-padding: 16px;
    }
    
    .navbar {
        padding: 0 16px;
    }
    
    .menu-toggle-navbar {
        width: 36px;
        height: 36px;
    }
    
    .menu-toggle-navbar svg {
        width: 18px;
        height: 18px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .user-section {
        gap: 12px;
    }
    
    .dropbtn {
        padding: 4px 8px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .username {
        max-width: 80px;
        font-size: 13px;
    }
    
    .vertical-menu-content {
        height: calc(100vh - var(--navbar-height));
        background: #ffffff;
        display: flex;
        flex-direction: column;
    }
    
    /* Menu items */
    .menu-item {
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 600;
        color: #111827;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .menu-item:hover {
        background: #eff6ff;
        color: #1a56db;
    }
    
    .menu-icon svg {
        color: #374151;
    }
    
    .menu-text {
        font-weight: 500;
        color: inherit;
    }
    
    .section-title {
        font-size: 12px;
        font-weight: 700;
        color: #6b7280;
        margin-bottom: 8px;
        padding-left: 4px;
    }
    
    .menu-scrollable-area {
        flex: 1;
        overflow-y: auto;
        max-height: calc(100vh - var(--navbar-height) - 140px);
        background: #ffffff;
    }
    
    .menu-navigation {
        padding: 16px;
        background: #ffffff;
        gap: 20px;
    }
    
    .menu-header {
        padding: 12px 16px;
        background: #1a56db;
    }
    
    .menu-user-info {
        margin: 12px 16px;
        padding: 12px;
        background: #eff6ff;
        border: 1px solid #1a56db;
    }
    
    /* FIXED FOOTER - ALWAYS VISIBLE AT BOTTOM */
    .menu-footer {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        padding: 12px 16px;
        background: #f8fafc;
        border-top: 1px solid #e5e7eb;
        margin-top: 0;
        flex-shrink: 0;
    }
    
    .help-link {
        font-size: 13px;
        font-weight: 500;
        color: #374151;
    }
    
    .menu-version small {
        font-size: 11px;
        color: #6b7280;
    }
    
    /* Prevent body scroll when menu is open on mobile */
    body.menu-open {
        overflow: hidden;
    }
}

/* Small Mobile (≤ 480px) */
@media (max-width: 480px) {
    :root {
        --navbar-height: 56px;
    }
    
    .navbar {
        padding: 0 12px;
    }
    
    .menu-toggle-navbar {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .username {
        display: none;
    }
    
    .dropdown-arrow {
        display: none;
    }
    
    .menu-header {
        padding: 12px;
        background: #1a56db;
    }
    
    .menu-navigation {
        padding: 12px;
        gap: 16px;
        background: #ffffff;
    }
    
    /* Menu items */
    .menu-item {
        padding: 14px 12px;
        font-size: 15px;
        font-weight: 600;
        color: #000000;
        background: #ffffff;
        margin-bottom: 2px;
        border-radius: 8px;
        border: 1px solid #f3f4f6;
    }
    
    .menu-item:hover {
        background: #eff6ff;
        color: #1a56db;
        border-color: #1a56db;
    }
    
    .menu-icon svg {
        width: 18px;
        height: 18px;
        color: #374151;
    }
    
    .menu-badge {
        font-size: 11px;
        font-weight: 700;
        padding: 3px 8px;
    }
    
    .section-title {
        font-size: 13px;
        font-weight: 700;
        color: #4b5563;
        margin-bottom: 10px;
        padding-left: 0;
    }
    
    .menu-scrollable-area {
        max-height: calc(100vh - var(--navbar-height) - 140px);
    }
    
    /* FIXED FOOTER - ALWAYS VISIBLE */
    .menu-footer {
        height: 70px;
        padding: 12px;
        background: #f8fafc;
        border-top: 1px solid #e5e7eb;
        position: sticky;
        bottom: 0;
    }
    
    .help-link {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        padding: 8px 0;
    }
    
    .menu-version small {
        font-size: 12px;
        color: #6b7280;
    }
}

/* Extra Small Mobile (≤ 320px) */
@media (max-width: 320px) {
    .vertical-menu-content {
        width: 100%;
    }
    
    .menu-item {
        padding: 16px 12px;
        font-size: 16px;
        font-weight: 600;
    }
    
    .menu-text {
        font-size: 16px;
        font-weight: 600;
    }
    
    .section-title {
        font-size: 14px;
        font-weight: 700;
    }
    
    .menu-footer {
        height: 70px;
        padding: 10px;
    }
}

/* ===== LOGOUT MODAL ===== */
.logout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all 250ms ease;
}

.logout-modal.show {
    opacity: 1;
    visibility: visible;
}

.logout-modal-content {
    background: #ffffff;
    padding: var(--space-6);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 320px;
    width: 90%;
    text-align: center;
    transform: translateY(-20px) scale(0.95);
    transition: transform 250ms ease;
    border: 1px solid #e5e7eb;
}

.logout-modal.show .logout-modal-content {
    transform: translateY(0) scale(1);
}

.logout-modal-icon {
    margin-bottom: var(--space-4);
}

.logout-modal-icon svg {
    color: #dc2626;
    width: 40px;
    height: 40px;
}

.logout-modal h3 {
    margin-bottom: var(--space-3);
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.logout-modal p {
    margin-bottom: var(--space-5);
    color: #374151;
    line-height: 1.5;
    font-size: 14px;
}

.logout-modal-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

.logout-confirm-btn,
.logout-cancel-btn {
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 150ms ease;
    border: 2px solid transparent;
    font-size: 13px;
    min-width: 100px;
}

.logout-confirm-btn {
    background: #dc2626;
    color: #ffffff;
}

.logout-confirm-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logout-cancel-btn {
    background: #f8fafc;
    color: #111827;
    border-color: #e5e7eb;
}

.logout-cancel-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

/* Force high contrast for all text in menu */
.vertical-menu-content * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Ensure proper flex layout for fixed footer */
.vertical-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-scrollable-area {
    flex: 1;
    overflow-y: auto;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .vertical-menu-container,
    .menu-overlay,
    .logout-modal {
        display: none !important;
    }
}

/* ===== END OF NAVBAR.CSS ===== */