/* Admin Impersonation Interface Styles */

/* Admin Impersonation Banner */
.admin-impersonation-banner {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1000;
    border-bottom: 2px solid #b02a37;
}

.admin-impersonation-banner .impersonation-text {
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.admin-impersonation-banner .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.admin-impersonation-banner .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-1px);
}

/* Admin Role Switcher */
.admin-role-switcher {
    min-width: 150px;
}

.admin-role-switcher .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.admin-role-switcher .form-select:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.admin-role-switcher .form-select option {
    background-color: #dc3545;
    color: white;
}

/* Admin Test Mode Footer Watermark */
.admin-test-watermark {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    50% {
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
}

/* Adjust main content when banner is present */
body:has(.admin-impersonation-banner) main {
    margin-top: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .admin-impersonation-banner {
        padding: 6px 0;
        font-size: 12px;
    }
    
    .admin-impersonation-banner .impersonation-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .admin-role-switcher {
        min-width: 120px;
        margin-top: 4px;
    }
    
    .admin-test-watermark {
        bottom: 5px;
        right: 5px;
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .admin-impersonation-banner {
        background: linear-gradient(135deg, #dc3545 0%, #a71e2a 100%);
    }
    
    .admin-test-watermark {
        background: rgba(220, 53, 69, 0.95);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .admin-impersonation-banner {
        background: #dc3545;
        border-bottom: 3px solid #000;
    }
    
    .admin-test-watermark {
        background: #dc3545;
        border: 2px solid #000;
    }
}
