﻿/* Base Navbar */
.navbar {
    /* background: linear-gradient(90deg, #1d2671, #c33764); */
    background: linear-gradient(90deg, #07560e, #10c30b);
    transition: all 0.35s ease;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

    /* Shrink effect on scroll */
    .navbar.shrink {
        padding: 0.5rem 1rem;
        background: linear-gradient(90deg, #0f2027, #2c5364);
        box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    }

    /* Nav Links */
    .navbar .nav-link {
        color: #f8f9fa !important;
        position: relative;
        padding: 0.5rem 1rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .navbar .nav-link:hover {
            color: #ffd369 !important;
            transform: translateY(-2px);
        }

        .navbar .nav-link.active {
            font-weight: 600;
            color: #ffd369 !important;
            border-bottom: 2px solid #ffd369;
        }

/* Dropdown Animations */
.dropdown-menu {
    --bs-dropdown-min-width: 13rem;
    border-radius: 0.6rem;
    padding: 0.5rem;
    animation: fadeSlide 0.25s ease forwards;
    display: none;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Submenu positioning */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -0.25rem;
        display: none;
    }

    .dropdown-submenu.open > .dropdown-menu {
        display: block;
    }
/* Hover open for desktop */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu,
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}


/* Prevent submenu auto-close */
.dropdown-menu[data-bs-auto-close="outside"] {
    pointer-events: auto;
}

/* Dropdown item animation */
.dropdown-item {
    border-radius: 0.3rem;
    transition: background 0.25s ease, transform 0.2s ease;
}

    .dropdown-item:hover {
        background: rgba(255, 211, 105, 0.25);
        transform: translateX(6px);
    }

/* Arrows (Bootstrap Icons) */
.dropdown-toggle::after {
    display: none !important;
}

.dropdown-toggle .fa {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a .fa {
    transform: rotate(180deg);
}

.dropdown.show > a .fa,
.dropdown-submenu:hover > a .fa {
    transform: rotate(-90deg);
}

/* Brand */
.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff !important;
    transition: transform 0.3s ease;
}

    .navbar-brand:hover {
        transform: scale(1.05);
        color: #ffd369 !important;
    }

.dropdown-item.active, .dropdown-item:active {
    color: var(--bs-dropdown-link-active-color);
    text-decoration: none;
    background-color: #a68605;
}

.navbar-toggler {
    background: white !important;
}
/* User Avatar Circle */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff; /* white circle */
    border: 1px solid #ffcc00; /* yellow border for accent */
    color: #145a32; /* dark green icon */
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

    /* Hover Effect */
    .user-avatar:hover {
        background: #ffcc00;
        color: #145a32;
        transform: scale(1.05);
    }


/* Hide account text on mobile for cleaner look */
@media (max-width: 991px) {
    .nav-link-main-user span {
        display: none;
    }
    .dropdown-menu.show {
        display: block !important;
    }
}

.btn-gis-portal {
    padding: 10px 40px;
    text-align: center;
    text-transform: capitalize;
    text-decoration: none;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    border-radius: 50px;
    display: block;
    border: 0px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0px 0px 14px -7px #f09819;
    background-image: linear-gradient(45deg, #FF512F 0%, #F09819 51%, #FF512F 100%);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

    .btn-gis-portal:hover {
        background-position: right center;
        color: #fff;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .btn-gis-portal:active {
        transform: scale(0.95);
    }
