.impersonation-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    padding: 8px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 0.9rem;
}

.impersonation-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.impersonation-leave-btn {
    background: rgba(255,255,255,0.25);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.5);
    transition: background 0.2s, border-color 0.2s;
}

.impersonation-leave-btn:hover {
    background: rgba(255,255,255,0.4);
    border-color: #fff;
    color: #fff;
}

body.impersonating {
    padding-top: 44px;
}

body.impersonating .navbar.sticky-top {
    top: 44px;
}

/* Dashboard layout - sticky topbar sits below impersonation bar */
body.impersonating .topbar {
    top: 44px;
}

body.impersonating .sidebar {
    top: 44px;
    height: calc(100vh - 44px);
}
