/* ==========================================================================
   TOP BAR & PROFILE DROPDOWN LAYOUT
   ========================================================================== */

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: 56px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

/* Profile Dropdown Container */
.profile-dropdown {
    position: relative;
    cursor: pointer;
}

    /* Caret Icon Customization */
    .profile-dropdown .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.35em;
        vertical-align: 0.255em;
        font-size: 0.75rem;
        color: #64748b;
        transition: transform 0.15s ease;
    }

    /* Flip Caret when Active */
    .profile-dropdown .dropdown-toggle.show::after {
        transform: rotate(180deg);
    }

    /* Menu Customization */
    .profile-dropdown .dropdown-menu {
        position: absolute;
        border: 1px solid #e2e8f0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
        border-radius: 0.5rem;
        padding: 0.35rem;
        min-width: 150px;
        background-color: #ffffff;
        margin-top: 0.25rem !important;
    }

    /* Dropdown Action Links */
    .profile-dropdown .dropdown-item {
        border-radius: 0.375rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        color: #334155;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

        .profile-dropdown .dropdown-item:hover {
            background-color: #f1f5f9;
            color: #ef4444; /* Destructive red accent color for logout */
        }
