/* Super Admin Impersonation Component */
.super-admin-impersonate {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.impersonate-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: 3px solid #fff;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
}

.impersonate-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.6);
}

.impersonate-toggle-btn:active {
    transform: scale(0.95);
}

.impersonate-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 320px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.impersonate-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.impersonate-header .close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.impersonate-header .close-btn:hover {
    transform: rotate(90deg);
}

.impersonate-body {
    padding: 16px;
}

.impersonate-body .form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.impersonate-body .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.impersonate-body .alert-sm {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.impersonate-body .btn {
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.impersonate-body .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .super-admin-impersonate {
        bottom: 10px;
        left: 10px;
    }

    .impersonate-panel {
        width: calc(100vw - 40px);
        max-width: 320px;
    }

    .impersonate-toggle-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Ensure it's above other elements */
.super-admin-impersonate.expanded {
    z-index: 10000;
}
