/* ============================================== */
/* 대리 로그인 (Impersonation) 플로팅 배너 스타일    */
/* 모든 레이아웃(홈페이지, 마이페이지 등)에서 사용    */
/* ============================================== */

/* 플로팅 배너 (우측 하단) */
.impersonate-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.impersonate-float-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(249, 115, 22, 0.2);
    overflow: hidden;
    width: 300px;
}

.impersonate-float-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: linear-gradient(90deg, #f97316, #ea580c);
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.impersonate-float-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.impersonate-float-minimize {
    margin-left: auto;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.impersonate-float-minimize:hover {
    background: rgba(255, 255, 255, 0.3);
}

.impersonate-float-minimize svg {
    width: 14px;
    height: 14px;
}

.impersonate-float-body {
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.impersonate-float-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.impersonate-float-row:last-child {
    margin-bottom: 0;
}

.impersonate-float-label {
    flex-shrink: 0;
    width: 36px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    padding-top: 2px;
}

.impersonate-float-user,
.impersonate-float-admin {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.impersonate-float-user strong,
.impersonate-float-admin strong {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.impersonate-float-user span,
.impersonate-float-admin span {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.impersonate-float-admin strong {
    color: #64748b;
    font-weight: 500;
}

.impersonate-float-admin span {
    color: #94a3b8;
}

.impersonate-float-stop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.impersonate-float-stop:hover {
    background: #fee2e2;
}

.impersonate-float-stop svg {
    width: 16px;
    height: 16px;
}

/* 최소화 버튼 */
.impersonate-float-mini {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.impersonate-float-mini:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.impersonate-float-mini svg {
    width: 24px;
    height: 24px;
}

.impersonate-float-mini-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
}

/* 반응형 */
@media (max-width: 768px) {
    .impersonate-float {
        bottom: 16px;
        right: 16px;
    }

    .impersonate-float-content {
        width: 280px;
    }

    .impersonate-float-mini {
        width: 48px;
        height: 48px;
    }

    .impersonate-float-mini svg {
        width: 20px;
        height: 20px;
    }
}
