﻿.modern-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.2rem;
}

    .modern-navbar .navbar-brand img {
        height: 36px;
        width: 36px;
        vertical-align: middle;
    }

.modern-navbar .nav-link {
    color: #343a40;
    font-weight: 500;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    border-radius: 0.475rem;
    transition: color 0.15s, background-color 0.15s;
}

    .modern-navbar .nav-link:hover,
    .modern-navbar .nav-link:focus {
        color: #007bff;
        background: rgba(0,123,255,0.08);
    }

    .modern-navbar .nav-link.active {
        color: #007bff;
        background: rgba(0,123,255,0.13);
        font-weight: 600;
    }

.modern-navbar .dropdown-menu {
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.modern-navbar .dropdown-item {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: #212529;
    display: flex;
    align-items: center;
}

    .modern-navbar .dropdown-item:hover,
    .modern-navbar .dropdown-item:focus {
        background-color: #e9ecef;
        color: #1e2125;
    }

    .modern-navbar .dropdown-item.active,
    .modern-navbar .dropdown-item:active {
        background-color: #007bff;
        color: #fff;
    }

.modern-navbar .nav-logout-button {
    color: #dc3545;
    font-weight: 500;
    border-radius: 0.475rem;
}

    .modern-navbar .nav-logout-button:hover,
    .modern-navbar .nav-logout-button:focus {
        color: #fff;
        background: #c82333;
    }

.modern-navbar .nav-link.disabled {
    color: #6c757d;
    pointer-events: none;
    opacity: 0.8;
}

@media (max-width: 767.98px) {
    .modern-navbar .navbar-collapse {
        display: none !important;
    }

    .offcanvas {
        width: 85vw;
        min-width: 180px;
        max-width: 300px;
    }

    .modern-navbar .navbar-brand img {
        height: 28px;
        width: 28px;
    }
}

.custom-tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: default; /* Standard cursor as requested */
    color: #6c757d; /* Matches text-muted */
}

    /* The actual tooltip box */
    .custom-tooltip-wrapper .custom-tooltip-text {
        visibility: hidden;
        width: 160px; /* Width of the popup */
        background-color: #333; /* Dark background */
        color: #fff; /* White text */
        text-align: center;
        border-radius: 6px;
        padding: 8px 10px;
        /* POSITIONING */
        position: absolute;
        z-index: 1060; /* Higher than navbar */
        top: 125%; /* Position below the text */
        left: 50%;
        margin-left: -110px; /* Center it (half of width) */
        /* FONT SIZE - MAKING IT BIGGER */
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.4;
        /* FADE EFFECT */
        opacity: 0;
        transition: opacity 0.3s;
        box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    }

    .custom-tooltip-wrapper:hover .custom-tooltip-text {
        visibility: visible;
        opacity: 1;
    }

    .custom-tooltip-wrapper .custom-tooltip-text::after {
        content: "";
        position: absolute;
        bottom: 100%; /* At the top of the tooltip */
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: transparent transparent #333 transparent;
    }