/* Updated Navbar Styles with Corporate Colors */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, padding 0.3s ease;
    padding: 12px 0;
}

/* Brand Text Styling */
.brand-text {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
}

.brand-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3182ce, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.brand-text:hover::before {
    transform: translateX(100%);
}

.brand-text-part1 {
    color: #2c5282;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.brand-text-part2 {
    color: #3182ce;
    background: linear-gradient(45deg, #3182ce, #4299e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.navbar-brand {
    transition: transform 0.3s ease;
    will-change: transform;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-item {
    position: relative;
    margin: 0 5px;
}

.navbar-nav .nav-link {
    color: #4a4a4a !important;
    font-weight: 500;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.navbar-nav .nav-link:hover {
    color: #2c5282 !important;
    background-color: rgba(44, 82, 130, 0.05);
    transform: translateY(-2px);
}

.navbar-nav .active .nav-link {
    color: #000000 !important; /* Changed to black for high contrast */
    font-weight: 700; /* Made font weight bolder */
    background-color: rgba(44, 82, 130, 0.08); /* Light background for more emphasis */
}

/* Make icons match the active text color */
.navbar-nav .active .nav-link i {
    color: #000000 !important; /* Black icon to match text */
}

.navbar-nav .active .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 40px; /* Wider indicator line */
    height: 3px; /* Thicker line */
    background: #000000; /* Black indicator line */
    transform: translateX(-50%) scaleX(1);
    transform-origin: center;
    will-change: transform, opacity;
    animation: activeIndicatorPulse 2s infinite;
}

/* Gradient navbar - can be enabled by adding .gradient-navbar class to the navbar */
.gradient-navbar {
    background: linear-gradient(90deg, #f8f9fa, #e9ecef) !important;
}

/* Animation for navbar items */
@keyframes slideInDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-navbar {
    animation: slideInDown 0.5s ease forwards;
}

/* Navbar toggler customization */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(44, 82, 130, 0.25);
}

/* Animation for active indicator - GPU accelerated */
@keyframes activeIndicatorPulse {
    0% {
        opacity: 0.7;
        transform: translateX(-50%) scaleX(0.75);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
    100% {
        opacity: 0.7;
        transform: translateX(-50%) scaleX(0.75);
    }
}

/* Responsive styles */
@media (max-width: 992px) {
    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    .navbar-nav .active .nav-link {
        border-left: 3px solid #000000;
        padding-left: 12px !important;
    }

    .navbar-nav .active .nav-link:after {
        display: none;
    }
}
