/* Mobile Navbar Toggler Fix */
.navbar-toggler {
    border: 2px solid #333;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Ensure toggler is visible on mobile */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border-color: #333;
        background-color: #fff;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23333' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .custom-header .navbar-collapse {
        background: #f8fafc;
        border-radius: 12px;
        padding: 1rem 1.25rem;
        margin-top: 0.75rem;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    }

    .custom-header .custom-nav {
        gap: 0;
        width: 100%;
    }

    .custom-header .custom-nav .nav-item {
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
    }

    .custom-header .custom-nav .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        font-size: 0.95rem;
        letter-spacing: 0;
    }

    .custom-header .custom-nav .nav-link::after {
        content: '\f105';
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.85rem;
        color: #cbd5f5;
        transition: transform 0.2s ease;
    }

    .custom-header .custom-nav .nav-link:focus-visible {
        outline: none;
    }

    .custom-header .custom-nav .nav-link.active::after,
    .custom-header .custom-nav .nav-link:hover::after {
        transform: translateX(4px);
        color: #dc3545;
    }

    .custom-header .navbar-nav:last-child {
        margin-top: 1rem;
        border-top: 1px dashed #e2e8f0;
        padding-top: 1rem;
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .custom-header .navbar-nav:last-child .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        border-radius: 10px;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        padding: 0.5rem 0;
    }

    .custom-header .navbar-nav:last-child .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #fff;
    }

    .mobile-user-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-user-dropdown .notification-pill {
        width: 100%;
        justify-content: space-between;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #fff;
        color: #475569;
        padding: 0.65rem 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    }

    .mobile-user-dropdown .notification-pill .badge {
        min-width: 1.5rem;
        text-align: center;
        font-size: 0.65rem;
    }

    .mobile-user-dropdown .dropdown-menu .dropdown-item {
        padding: 0.85rem 1rem;
    }
}
