﻿/* wwwroot/css/menu.css */

/* Navbar Gradient Background */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .navbar-brand i {
        margin-right: 8px;
        font-size: 2rem;
        color: #764ba2;
    }

/* Nav Links Styling */
.nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 5px;
    position: relative;
}

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #667eea !important;
        transform: translateY(-2px);
    }

    .nav-link i {
        margin-right: 5px;
    }

    .nav-link::after {
        content: '';
        position: relative;
        bottom: 0;
        left: 10%;
        width: 0;
        height: 2px;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after {
        transform: rotate(-180deg);
    }

    .nav-link.active {
        color: #667eea !important;
        font-weight: 600;
    }

        .nav-link.active::after {
            width: 80%;
        }

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    /*margin-top: 0.5rem;*/
}

.dropdown-item {
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
    color: #333;
}

    .dropdown-item:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .dropdown-item i {
        margin-right: 8px;
        width: 20px;
        text-align: center;
    }

/* Nested Dropdown (Second Level) Styling */
.dropend .dropdown-toggle {
    display: flex;
    justify-content: space-between; /* push arrow to the right */
    align-items: center;
}

    .dropend .dropdown-toggle::after {
        margin-left: auto;
        vertical-align: middle;
    }

.dropend > .dropdown-menu {
    top: 0;
    right: auto;
    left: 100%;
    margin-top: 0;
    margin-left: 0.125rem;
}
.dropdown:hover > .dropdown-menu{
    display:block;
}
/* Hover effect for nested dropdowns */
.dropend:hover > .dropdown-menu {
    display: block;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

/* Smooth animation for dropdown appearance */
.dropdown-menu {
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown divider */
.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Active state */
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #764ba2 !important;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-item {
        margin: 0.2rem 0;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin-left: 1rem;
    }

    .dropdown-item {
        /*color: rgba(255, 255, 255, 0.9);*/
    }

        .dropdown-item:hover {
            /*background: rgba(255, 255, 255, 0.2);
            color: white;*/
        }

    .dropend > .dropdown-menu {
        position: static;
        margin-left: 1rem;
    }

    .dropend .dropdown-toggle::after {
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
        margin-left: 0.5rem;
    }
}

/* Content Area */
.container {
    max-width: 1200px;
}
