﻿/* =========================
   PILL MENU TEMPLATE - Enhanced
   Rounded pill design with smooth animations
========================= */

.navbar-custom {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    padding: 0.85rem 0;
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

    .navbar-custom .nav-link {
        color: #475569 !important;
        font-weight: 600;
        font-size: 0.95rem;
        padding: 0.85rem 2rem !important;
        margin: 0 0.25rem;
        border-radius: 50px !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(255, 255, 255, 0.8);
        border: 2px solid transparent;
        position: relative;
        overflow: hidden;
        z-index: 1;
    }

        .navbar-custom .nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            border-radius: 50px;
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.4s ease;
            z-index: -1;
        }

        .navbar-custom .nav-link::after {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(135deg, #3b82f6, #1d4ed8, #3b82f6);
            border-radius: 50px;
            z-index: -2;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .navbar-custom .nav-link:hover,
        .navbar-custom .nav-link.active {
            color: #ffffff !important;
            border-color: transparent;
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
        }

            .navbar-custom .nav-link:hover::before,
            .navbar-custom .nav-link.active::before {
                transform: scaleX(1);
                transform-origin: left;
            }

            .navbar-custom .nav-link:hover::after,
            .navbar-custom .nav-link.active::after {
                opacity: 1;
                animation: rotate 3s linear infinite;
            }

        .navbar-custom .nav-link i {
            font-size: 1.1rem;
            margin-right: 0.5rem;
            transition: all 0.3s ease;
            z-index: 2;
        }

        .navbar-custom .nav-link:hover i {
            transform: translateY(-2px) rotate(15deg);
        }

    /* Dropdown Styles */
    .navbar-custom .dropdown-menu {
        background: #ffffff !important;
        border: 2px solid #f1f5f9 !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
        padding: 0.75rem 0;
        margin-top: 0.75rem !important;
        animation: popIn 0.3s ease;
    }

    .navbar-custom .dropdown-item {
        color: #475569 !important;
        padding: 0.85rem 2rem !important;
        margin: 0.15rem 1rem;
        border-radius: 50px !important;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

        .navbar-custom .dropdown-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            border-radius: 50px;
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.3s ease;
            z-index: -1;
        }

        .navbar-custom .dropdown-item:hover,
        .navbar-custom .dropdown-item:focus {
            color: #ffffff !important;
            padding-left: 2.5rem !important;
            transform: translateX(5px);
        }

            .navbar-custom .dropdown-item:hover::before {
                transform: scaleX(1);
                transform-origin: left;
            }

        .navbar-custom .dropdown-item i {
            color: #3b82f6;
            margin-right: 0.75rem;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            z-index: 2;
        }

        .navbar-custom .dropdown-item:hover i {
            color: #ffffff;
            transform: scale(1.2);
        }

/* Mobile Styles */
@media (max-width: 991.98px) {
    .navbar-custom {
        padding: 0.5rem 1rem;
    }

        .navbar-custom .navbar-collapse {
            background: #ffffff;
            border-radius: 20px;
            margin-top: 0.5rem;
            padding: 1rem;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
            border: 2px solid #f1f5f9;
        }

        .navbar-custom .nav-link {
            margin: 0.3rem 0;
            text-align: center;
            padding: 0.85rem 1.5rem !important;
        }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
