/**
 * ImmigraSuite Admin - Impersonation Banner
 * Styles for the user impersonation feature
 * Uses GrowMore theme color: #5DC2D3
 */

/* ==========================================================================
   Impersonation Banner
   ========================================================================== */

.is-impersonation-banner {
    position: relative;
    z-index: 50;
    width: 100%;
    background: linear-gradient(135deg, #5DC2D3 0%, #4BA8B8 100%);
    color: white;
    padding: 10px 24px;
    box-shadow: 0 2px 8px rgba(93, 194, 211, 0.3);
}

.is-impersonation-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 16px;
}

.is-impersonation-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.is-impersonation-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.is-impersonation-icon .is-icon {
    width: 24px !important;
    height: 24px !important;
    color: white;
}

.is-impersonation-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.is-impersonation-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.is-impersonation-name {
    font-size: 15px;
    font-weight: 600;
}

.is-impersonation-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.is-impersonation-return-text {
    font-size: 13px;
    opacity: 0.9;
}

.is-impersonation-return-text strong {
    font-weight: 600;
}

.is-impersonation-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #4BA8B8;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.is-impersonation-btn:hover {
    background: #f0fafb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.is-impersonation-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Dark mode */
.dark .is-impersonation-banner {
    background: linear-gradient(135deg, #4BA8B8 0%, #3A8A98 100%);
    box-shadow: 0 2px 8px rgba(58, 138, 152, 0.4);
}

.dark .is-impersonation-btn {
    background: #f0fafb;
    color: #3A8A98;
}

.dark .is-impersonation-btn:hover {
    background: white;
}

/* Responsive */
@media (max-width: 640px) {
    .is-impersonation-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .is-impersonation-info {
        justify-content: center;
    }

    .is-impersonation-actions {
        flex-direction: column;
        gap: 8px;
    }

    .is-impersonation-return-text {
        font-size: 12px;
    }
}
