/*
 * Impersonation Module Stylesheet for Rise CRM
 * Consolidates all UI styles for the Impersonation Hub, Floating Banner, and Profile Tabs.
 */

/* ==========================================
 * 1. Impersonation Hub View
 * ========================================== */

.impersonation-icon-wrap {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.impersonation-icon-feather {
    width: 24px;
    height: 24px;
}

.impersonation-hub-title {
    font-weight: 700;
    color: #1d1d1f;
}

.impersonation-hub-subtitle {
    color: #86868b;
    font-size: 13px;
}



.impersonation-select-input {
    width: 100%;
}



/* ==========================================
 * 2. Floating Live Session Banner
 * ========================================== */
#impersonation-alert-banner {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 999999;
    background: rgba(18, 18, 29, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 69, 58, 0.25);
    border-radius: 50px;
    padding: 8px 12px 8px 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 69, 58, 0.15);
    animation: slideUpBanner 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
}

#impersonation-alert-banner:hover {
    border-color: rgba(255, 69, 58, 0.5);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 69, 58, 0.25);
    transform: translateX(-50%) translateY(-2px);
}

.impersonation-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.impersonation-badge-pulse {
    width: 10px;
    height: 10px;
    background-color: #ff453a;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.7);
    animation: badgePulse 1.8s infinite;
}

.impersonation-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.impersonation-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f5f5f7;
    font-size: 13px;
}

.impersonation-title {
    color: #a1a1a6;
}

.impersonation-name {
    color: #ffffff;
    font-weight: 600;
}

.impersonation-role-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #a1a1a6;
    letter-spacing: 0.5px;
}

.impersonation-timer-badge {
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 69, 58, 0.15);
    border: 1px solid rgba(255, 69, 58, 0.3);
    color: #ff453a;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    font-variant-numeric: tabular-nums;
}

.impersonation-timer-clock {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
}

.impersonation-stop-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff453a 0%, #ff3b30 100%);
    border: none;
    border-radius: 30px;
    padding: 8px 16px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.35);
    transition: all 0.25s ease;
}

.impersonation-stop-btn:hover {
    background: linear-gradient(135deg, #ff5e55 0%, #ff453a 100%);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.5);
    color: #ffffff !important;
    transform: scale(1.03);
}

.impersonation-stop-btn svg {
    stroke-width: 2.5;
}

@keyframes slideUpBanner {
    0% {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes badgePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 69, 58, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 69, 58, 0);
    }
}


/* ==========================================
 * 3. Quick Impersonation Profile Tab View
 * ========================================== */
.impersonate-tab-card {
    max-width: 500px;
    margin: 30px auto;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

.impersonate-tab-avatar-wrapper {
    width: 80px;
    height: 80px;
    display: inline-block;
}

.impersonate-tab-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 122, 255, 0.15);
}

.impersonate-tab-name {
    font-weight: 700;
    color: #1d1d1f;
}

.impersonate-tab-role {
    color: #86868b;
}

.impersonate-tab-alert {
    background-color: rgba(255, 149, 0, 0.1);
    color: #c97d00;
    border-radius: 10px;
    line-height: 1.6;
    padding: 15px;
}

.impersonate-tab-alert i {
    color: #ff9500;
}

.impersonate-tab-btn {
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}