﻿/* =========================
   DARK MENU TEMPLATE - Enhanced
   Sleek, modern dark theme
========================= */
.navbar-custom {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%) !important; /* Added !important to override potential Bootstrap or other CSS */
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    /* Removed overflow: hidden to prevent clipping dropdowns */
}

    .navbar-custom .dropdown-menu {
        z-index: 9999;
    }

    /* Ensure dropdown is visible on hover (for non-JS fallback or enhancement) */
    .navbar-custom .dropdown:hover .dropdown-menu {
        display: block;
    }

    .navbar-custom::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    }

    .navbar-custom .nav-link {
        color: #e2e8f0;
        font-weight: 500;
        font-size: 0.95rem;
        padding: 0.85rem 1.5rem;
        margin: 0 0.2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        z-index: 1;
    }

        .navbar-custom .nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transition: left 0.5s ease;
            z-index: -1;
        }

        .navbar-custom .nav-link:hover,
        .navbar-custom .nav-link.active {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

            .navbar-custom .nav-link:hover::before {
                left: 100%;
            }

        .navbar-custom .nav-link.active {
            background: linear-gradient(135deg, #4FD1C5 0%, #2c5364 100%);
            box-shadow: 0 4px 20px rgba(79, 209, 197, 0.3);
        }

        .navbar-custom .nav-link i {
            font-size: 1.1rem;
            margin-right: 0.5rem;
            vertical-align: middle;
            transition: transform 0.3s ease;
        }

        .navbar-custom .nav-link:hover i {
            transform: scale(1.2) rotate(5deg);
        }
    /* Dropdown Styles */
    .navbar-custom .dropdown-menu {
        background: #1a202c !important; /* Kept !important to override Bootstrap */
        border-radius: 12px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
        padding: 0.75rem 0;
        margin-top: 0;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-custom .dropdown-item {
        color: #cbd5e0 !important;
        padding: 0.85rem 1.75rem;
        margin: 0.15rem 0.5rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

        .navbar-custom .dropdown-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background: #4FD1C5;
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .navbar-custom .dropdown-item:hover,
        .navbar-custom .dropdown-item:focus {
            color: #ffffff !important;
            background: rgba(255, 255, 255, 0.1) !important;
            padding-left: 2.25rem;
        }

            .navbar-custom .dropdown-item:hover::before {
                transform: scaleY(1);
            }

        .navbar-custom .dropdown-item i {
            color: #4FD1C5;
            margin-right: 0.75rem;
            font-size: 0.9rem;
        }
/* Mobile Styles */
@media (max-width: 991.98px) {
    .navbar-custom {
        padding: 0.5rem 1rem;
        background: #0f2027 !important; /* Added !important for mobile override */
    }

        .navbar-custom .navbar-collapse {
            background: #1a202c !important; /* Added !important to ensure visibility */
            border-radius: 12px;
            margin-top: 0.5rem;
            padding: 1rem;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        }

        .navbar-custom .nav-link {
            margin: 0.3rem 0;
            border-left: 3px solid transparent;
        }

            .navbar-custom .nav-link.active {
                border-left-color: #4FD1C5;
                background: rgba(79, 209, 197, 0.15);
            }
}
