/* Navigation Menu Styles */
.container {
    position: relative;
}

.navigation-menu {
    display: flex; /* Temporarily always show for testing */
    gap: 20px;
    align-items: center;
    background-color: #f8f9fa; /* Light background */
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
}

.navigation-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.navigation-menu a:hover {
    background-color: var(--brand-orange, #ff6600); /* Use brand orange on hover */
    color: #fff;
}

.navigation-menu a:active {
    background-color: #e55a00; /* Darker orange on click */
}

.hamburger {
    display: block; /* Temporarily always show for testing */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    user-select: none; /* Prevent text selection */
    background-color: #ff0000; /* Make it red for visibility */
}

.hamburger:hover {
    background-color: #f0f0f0;
}

.hamburger:active {
    background-color: #e0e0e0;
    transform: scale(0.95);
}

/* Mobile Styles */
@media (max-width: 600px) {
    .navigation-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        flex-direction: column !important;
        gap: 0 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        border-radius: 5px !important;
        z-index: 1000 !important;
        padding: 0 !important;
        border-bottom: none !important;
    }

    .navigation-menu.active {
        display: flex !important;
    }

    .navigation-menu a {
        padding: 15px 20px !important;
        border-bottom: 1px solid #eee !important;
        width: 100% !important;
        text-align: left !important;
    }

    .navigation-menu a:last-child {
        border-bottom: none !important;
    }

    .hamburger {
        display: block !important;
    }
}

/* ===== MENU STYLES ===== */
.menu-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 20px;
}

.menu-item {
    padding: 10px 16px;
    background: #f3f4f6;
    color: #d77504;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    white-space: nowrap;
    display: inline-block;
}

.menu-item:hover {
    background: #ff6600;
    color: white;
}

.menu-item.logout {
    background: #dc3545;
    color: white;
}

.menu-item.logout:hover {
    background: #c82333;
    color: white;
}

.menu-toggle {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-container {
        justify-content: space-between;
        flex-direction: row;
        padding: 0;
        position: relative;
        z-index: 10001;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        color: #d77504;
        font-size: 24px;
    }

    .menu-toggle svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
    }

    .menu-links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 8px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s, opacity 0.3s;
        z-index: 10000;
        margin-top: 4px;
        transform: translateZ(0);
    }

    .menu-links.active {
        max-height: 400px;
        opacity: 1;
    }

    .menu-item {
        width: 100%;
        text-align: left;
        padding: 10px 12px;
        background: transparent;
        box-shadow: none;
        border-radius: 4px;
        margin: 0;
    }

    .menu-item:hover {
        background: #f3f4f6;
        color: #d77504;
    }

    .menu-item.logout {
        background: transparent;
        color: #d77504;
    }

    .menu-item.logout:hover {
        background: #fed7d7;
        color: #dc3545;
    }
}