/* ==========================================================================
   🔐 JEREMOS - ADMIN STUDIO & ANALYTICS STYLES (jeremos-admin.css)
   Authentification, Admin Studio, Liste des blocs, Éditeur, Analytics, Purge
   ========================================================================== */

/* ==========================================================================
   ADMIN MODAL & PANEL SYSTEM
   ========================================================================== */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.admin-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.admin-card {
    width: 100%;
    max-width: 540px;
    background: rgba(24, 30, 42, 0.95);
    border: 1px solid var(--win-glass-border);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
    padding: 30px;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal-overlay.active .admin-card {
    transform: scale(1);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin-header h3 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.admin-header h3 i {
    color: #f59e0b;
}

.admin-close-btn {
    background: transparent;
    border: none;
    color: var(--win-text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.admin-close-btn:hover {
    color: white;
}

.admin-form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--win-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-input-box input,
.admin-input-box textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    color: white;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.admin-input-box select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 10px 38px 10px 14px;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.admin-input-box select:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background-color: rgba(255, 255, 255, 0.09);
}

.admin-input-box select option {
    background-color: #1a2234;
    color: #f8fafc;
    padding: 10px 14px;
    font-size: 13px;
}

.admin-input-box textarea {
    min-height: 80px;
    resize: vertical;
}

.admin-input-box input:focus,
.admin-input-box textarea:focus {
    border-color: var(--win-accent);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 12px var(--win-accent-glow);
}

.admin-input-box select:focus {
    border-color: #3b82f6;
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2360a5fa' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

.admin-input-icon {
    position: absolute;
    right: 12px;
    color: var(--win-text-muted);
    cursor: pointer;
}

.admin-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: var(--win-accent-gradient);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px var(--win-accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.admin-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.admin-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.admin-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.admin-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 16px;
    display: none;
}

.admin-alert.error {
    display: block;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.admin-alert.success {
    display: block;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
}

/* Admin Projects List Table inside Admin Panel Window (Pleine hauteur sans double ascenseur) */
.admin-projects-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* --- ACCORDÉONS ADMIN STUDIO HAUTE QUALITÉ --- */
.admin-accordion {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.admin-accordion:hover {
    border-color: rgba(96, 165, 250, 0.35);
}

.admin-accordion[open] {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(15, 23, 42, 0.45);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.admin-accordion-summary {
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    list-style: none;
    outline: none;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-accordion-summary::-webkit-details-marker {
    display: none;
}

.admin-accordion-summary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #60a5fa;
}

.admin-accordion-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-accordion-icon {
    font-size: 14px;
}

.admin-accordion-chevron {
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-accordion[open] .admin-accordion-chevron {
    transform: rotate(90deg);
    color: #60a5fa;
}

.admin-accordion-body {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.theme-light .admin-accordion {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .admin-accordion[open] {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.4);
}

body.theme-light .admin-accordion-summary {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.02);
}

body.theme-light .admin-accordion-body {
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* --- FOOTER FIXE / STICKY ADMIN STUDIO --- */
.admin-fixed-footer {
    flex-shrink: 0;
    margin: 0;
    padding: 14px 22px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    z-index: 20;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
}

body.theme-light .admin-fixed-footer {
    background: rgba(248, 250, 252, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

/* --- ANALYTICS PURGE MODULE & TOOLTIP --- */
.analytics-purge-card {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.28);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.06);
}

.analytics-purge-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 280px;
}

.analytics-purge-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.15);
}

.analytics-purge-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.analytics-purge-title {
    font-weight: 700;
    font-size: 13.5px;
    color: #f87171;
    letter-spacing: -0.2px;
}

.analytics-purge-desc {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.4;
}

.analytics-purge-btn {
    width: auto;
    padding: 9px 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
    white-space: nowrap;
}

body.theme-light .analytics-purge-card {
    background: rgba(254, 242, 242, 0.9);
    border-color: rgba(239, 68, 68, 0.35);
}

body.theme-light .analytics-purge-icon-wrap {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

body.theme-light .analytics-purge-title {
    color: #dc2626;
}

body.theme-light .analytics-purge-desc {
    color: #64748b;
}

.analytics-chart-tooltip {
    position: absolute;
    display: none;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.45);
    border-radius: 8px;
    font-size: 11px;
    color: #f8fafc;
    pointer-events: none;
    z-index: 50;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -120%);
    white-space: nowrap;
}

.admin-project-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: background 0.15s ease;
    text-align: left;
}

.admin-project-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.admin-project-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-align: left;
    justify-content: flex-start;
}

.admin-project-row-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    max-width: 34px;
    max-height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.admin-project-row-icon img,
.admin-project-row-icon .win-icon-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    pointer-events: none;
}

.admin-project-row-info {
    flex: 1;
    min-width: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.admin-project-row-info h6 {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: white;
    text-align: left;
}

.admin-project-row-info span {
    font-size: 11px;
    color: var(--win-text-muted);
    text-align: left;
}

.admin-project-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.admin-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s ease;
}

.admin-action-btn:hover {
    background: var(--win-accent);
}

.admin-action-btn.duplicate:hover {
    background: #10b981;
}

.admin-action-btn.delete:hover {
    background: #ef4444;
}



/* Admin Studio in Light Theme */
body.theme-light .admin-modal-overlay {
    background: rgba(0, 0, 0, 0.45);
}

body.theme-light .admin-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    color: #0f172a;
}

body.theme-light .admin-header h3 {
    color: #0f172a;
}

body.theme-light .admin-close-btn {
    color: #64748b;
}

body.theme-light .admin-close-btn:hover {
    color: #0f172a;
}

body.theme-light .admin-form-group label {
    color: #334155;
    font-weight: 600;
}

body.theme-light .admin-input-box input,
body.theme-light .admin-input-box textarea {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #0f172a;
}

body.theme-light .admin-input-box select {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.22);
    color: #0f172a;
    padding: 10px 38px 10px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-light .admin-input-box select:hover {
    border-color: rgba(0, 0, 0, 0.38);
    background-color: #f8fafc;
}

body.theme-light .admin-input-box select option {
    background-color: #ffffff;
    color: #0f172a;
    padding: 10px 14px;
}

body.theme-light .admin-input-box input::placeholder,
body.theme-light .admin-input-box textarea::placeholder {
    color: #94a3b8;
}

body.theme-light .admin-input-box input:focus,
body.theme-light .admin-input-box textarea:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    color: #0f172a;
}

body.theme-light .admin-input-box select:focus {
    background-color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    color: #0f172a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

body.theme-light .admin-btn-secondary {
    background: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

body.theme-light .admin-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

body.theme-light .admin-project-item {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.theme-light .admin-project-item:hover {
    background: #f1f5f9;
}

body.theme-light .admin-project-info h6 {
    color: #0f172a;
    font-weight: 600;
}

body.theme-light .admin-project-info span {
    color: #64748b;
}

body.theme-light .admin-switches-group {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-light .admin-switch-label span:first-child {
    color: #0f172a;
}

body.theme-light .admin-switch-subtext {
    color: #64748b;
}

body.theme-light .admin-switch-slider {
    background-color: #cbd5e1;
}

body.theme-light .win-body {
    color: #0f172a;
}

body.theme-light #win-app-admin_panel .win-body > div[style*="background:rgba(255,255,255,0.04)"] {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.theme-light #admin-crud-form-container {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.theme-light #win-app-admin_panel h4[style*="color:white"] {
    color: #0f172a !important;
}

body.theme-light #win-app-admin_panel span strong {
    color: #0f172a !important;
}

body.theme-light #win-context-menu {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

body.theme-light .win-context-item {
    color: #0f172a;
}

body.theme-light .win-context-item:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

body.theme-light .win-context-divider {
    background: rgba(0, 0, 0, 0.08);
}



/* ==========================================================================
   ADMIN TOGGLE SWITCH CONTROLS (LEGACY & FULL VIEW)
   ========================================================================== */
.admin-switches-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-switch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-switch-label {
    font-size: 12px;
    color: #e2e8f0;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    display: flex;
    flex-direction: column;
}

.admin-switch-subtext {
    font-size: 10px;
    color: var(--win-text-muted);
}

.admin-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.admin-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.admin-switch input:checked + .admin-switch-slider {
    background: var(--win-accent-gradient);
    border-color: var(--win-accent);
}

.admin-switch input:checked + .admin-switch-slider:before {
    transform: translateX(20px);
}



/* ==========================================================================
   ADMIN STUDIO DRAG & DROP REORDERING
   ========================================================================== */
.admin-project-drag-handle {
    cursor: grab;
    padding: 6px 8px;
    color: var(--win-text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}
.admin-project-drag-handle:hover {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.15);
}
.admin-project-drag-handle:active {
    cursor: grabbing;
}
.admin-project-row {
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.admin-project-row.row-dragging {
    opacity: 0.35;
    background: rgba(59, 130, 246, 0.15) !important;
    border: 1px dashed #3b82f6 !important;
}
.admin-project-row.drag-over-top {
    border-top: 2px solid #3b82f6 !important;
    transform: translateY(2px);
}
.admin-project-row.drag-over-bottom {
    border-bottom: 2px solid #3b82f6 !important;
    transform: translateY(-2px);
}



/* ==========================================================================
   STANDALONE APP EDITOR WINDOW & IMAGE UPLOADER
   ========================================================================== */
.admin-image-upload-wrapper {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-top: 6px;
}
.admin-image-dropzone {
    flex: 1;
    border: 2px dashed rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 96px;
}
.admin-image-dropzone:hover,
.admin-image-dropzone.drag-active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.2);
}
.admin-image-dropzone i {
    font-size: 26px;
    color: #60a5fa;
}
.admin-image-dropzone span {
    font-size: 12px;
    font-weight: 600;
    color: #f1f5f9;
}
.admin-image-dropzone small {
    font-size: 11px;
    color: #94a3b8;
}
.admin-image-preview-container {
    width: 140px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--win-glass-border);
    background: #090d14;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}
.admin-image-preview-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(15, 23, 42, 0.88);
    color: #34d399;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(52, 211, 153, 0.35);
    letter-spacing: 0.5px;
}



/* ==========================================================================
   ANALYTICS DASHBOARD & STATS WIDGET
   ========================================================================== */
.admin-analytics-mini-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.admin-analytics-mini-card:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.14));
    border-color: rgba(96, 165, 250, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}
.admin-badge-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.admin-stat-mini-box {
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-stat-mini-box .stat-num {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.admin-stat-mini-box .stat-lbl {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.win-analytics-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px;
    gap: 16px;
    overflow-y: auto;
}
.analytics-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.analytics-period-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--win-glass-border);
    gap: 4px;
}
.analytics-period-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.analytics-period-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.analytics-period-tab.active {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}
.analytics-custom-range {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--win-glass-border);
}
.analytics-custom-range input {
    background: transparent;
    border: none;
    color: #f8fafc;
    font-size: 12px;
    padding: 2px 4px;
    outline: none;
}
.analytics-custom-range button {
    background: #3b82f6;
    border: none;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
}
.analytics-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.analytics-metric-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--win-glass-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
}
.analytics-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}
.analytics-metric-card.accent-green::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}
.analytics-metric-card.accent-purple::before {
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
}
.analytics-metric-card.accent-red::before {
    background: linear-gradient(90deg, #ef4444, #f59e0b);
}
.analytics-metric-title {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.analytics-metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}
.analytics-metric-sub {
    font-size: 11px;
    color: #64748b;
}

.analytics-chart-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--win-glass-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.analytics-chart-svg {
    width: 100%;
    height: 180px;
    overflow: visible;
}
.analytics-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.analytics-panel-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--win-glass-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.analytics-bar-item {
    margin-bottom: 8px;
}
.analytics-bar-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #e2e8f0;
}
.analytics-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}
.analytics-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.analytics-table-container {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--win-glass-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.analytics-table-scroll {
    max-height: 260px;
    overflow-y: auto;
}
.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.analytics-table th {
    text-align: left;
    padding: 8px 10px;
    color: #94a3b8;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: #111722;
    z-index: 2;
}
.analytics-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
}
.analytics-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}
.analytics-bot-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}
.analytics-human-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
}



/* ==========================================================================
   LIGHT THEME GRAPHICAL OVERRIDES : BLOCK EDITOR, ADMIN STUDIO & ANALYTICS
   ========================================================================== */

/* --- 1. SÉLECTEURS DÉROULANTS (<select> & <option>) --- */
body.theme-light select,
body.theme-light .admin-input-box select {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.22) !important;
    color: #0f172a !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light select:hover,
body.theme-light .admin-input-box select:hover {
    border-color: rgba(0, 0, 0, 0.38) !important;
    background-color: #f8fafc !important;
}

body.theme-light select:focus,
body.theme-light .admin-input-box select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
}

body.theme-light select option,
body.theme-light .admin-input-box select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
    padding: 10px 14px !important;
}

/* --- 2. MODIFICATION DE BLOC (BLOCK EDITOR STANDALONE WINDOW) --- */
body.theme-light [id^="win-app-app_editor_"],
body.theme-light [id^="win-app-app_editor_"] .win-body,
body.theme-light .admin-editor-body {
    background: #f8fafc !important;
    color: #0f172a !important;
}

body.theme-light [id^="win-app-app_editor_"] label,
body.theme-light [id^="win-app-app_editor_"] .admin-form-group label,
body.theme-light .admin-editor-body .admin-form-group label {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.theme-light [id^="win-app-app_editor_"] .admin-input-box input,
body.theme-light [id^="win-app-app_editor_"] .admin-input-box textarea,
body.theme-light .admin-editor-body .admin-input-box input,
body.theme-light .admin-editor-body .admin-input-box textarea {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.theme-light [id^="win-app-app_editor_"] .admin-input-box input:focus,
body.theme-light [id^="win-app-app_editor_"] .admin-input-box textarea:focus,
body.theme-light .admin-editor-body .admin-input-box input:focus,
body.theme-light .admin-editor-body .admin-input-box textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
}

body.theme-light .admin-image-dropzone {
    border: 2px dashed rgba(0, 0, 0, 0.22) !important;
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

body.theme-light .admin-image-dropzone:hover,
body.theme-light .admin-image-dropzone.drag-active {
    border-color: #2563eb !important;
    background: rgba(37, 99, 235, 0.06) !important;
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.15) !important;
}

body.theme-light .admin-image-dropzone i {
    color: #2563eb !important;
}

body.theme-light .admin-image-dropzone span {
    color: #0f172a !important;
    font-weight: 600;
}

body.theme-light .admin-image-dropzone small {
    color: #64748b !important;
}

body.theme-light .admin-image-preview-container {
    background: #e2e8f0 !important;
    border: 1px solid rgba(0, 0, 0, 0.16) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

body.theme-light .admin-image-preview-badge {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #059669 !important;
    border: 1px solid rgba(5, 150, 105, 0.4) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.theme-light .admin-switches-group {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

body.theme-light .admin-switch-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .admin-switch-item:last-child {
    border-bottom: none !important;
}

body.theme-light .admin-switch-label span:first-child {
    color: #0f172a !important;
    font-weight: 600;
}

body.theme-light .admin-switch-subtext {
    color: #64748b !important;
}

body.theme-light .admin-switch-slider {
    background: #cbd5e1 !important;
}

body.theme-light .admin-switch input:checked + .admin-switch-slider {
    background: #2563eb !important;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

/* --- 3. PANEL ADMIN STUDIO (#win-app-admin_panel) --- */
body.theme-light #win-app-admin_panel,
body.theme-light #win-app-admin_panel .win-body {
    background: #f8fafc !important;
    color: #0f172a !important;
}

body.theme-light #win-app-admin_panel label,
body.theme-light #win-app-admin_panel .admin-form-group label {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.theme-light .admin-settings-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .admin-settings-card h5 {
    color: #0f172a !important;
}

body.theme-light .admin-settings-card p {
    color: #64748b !important;
}

body.theme-light .admin-card-heading {
    color: #2563eb !important;
}

body.theme-light .admin-section-heading {
    color: #0f172a !important;
}

body.theme-light .admin-subheading {
    color: #0f172a !important;
}

body.theme-light .admin-panel-sidebar {
    background: rgba(241, 245, 249, 0.95) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.theme-light .admin-tab-btn {
    color: #475569 !important;
}

body.theme-light .admin-tab-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}

body.theme-light .admin-tab-btn.active {
    background: #ffffff !important;
    color: #2563eb !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    font-weight: 600;
}

body.theme-light .admin-panel-content {
    background: #f8fafc !important;
}

/* Mini Analytics & Blacklist Card dans l'Admin Studio */
body.theme-light .admin-analytics-mini-card {
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .admin-analytics-mini-card:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%) !important;
    border-color: rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.12) !important;
}

body.theme-light .admin-badge-pill {
    background: rgba(37, 99, 235, 0.12) !important;
    color: #1d4ed8 !important;
}

body.theme-light .admin-stat-mini-box {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .admin-stat-mini-box .stat-num {
    color: #0f172a !important;
}

body.theme-light .admin-stat-mini-box .stat-lbl {
    color: #64748b !important;
}

body.theme-light .admin-analytics-mini-card span {
    color: #1e293b !important;
}

/* Lignes de blocs et liste dans l'Admin Studio */
body.theme-light .admin-project-row {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .admin-project-row:hover {
    background: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.18) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06) !important;
}

body.theme-light .admin-project-row-info h6 {
    color: #0f172a !important;
}

body.theme-light .admin-project-row-info span {
    color: #64748b !important;
}

body.theme-light .admin-project-row-icon {
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .admin-project-drag-handle {
    color: #94a3b8 !important;
}

body.theme-light .admin-project-drag-handle:hover {
    color: #2563eb !important;
}

body.theme-light .admin-action-btn {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.theme-light .admin-action-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

body.theme-light .admin-action-btn.duplicate:hover {
    background: #d1fae5 !important;
    color: #059669 !important;
    border-color: #6ee7b7 !important;
}

body.theme-light .admin-action-btn.delete:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
}



body.theme-light #admin-sync-github-btn {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #0f172a !important;
}

body.theme-light #admin-sync-github-btn:hover {
    background: #f8fafc !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
}

/* --- 4. PANNEAU STATISTIQUES (#win-app-analytics_dashboard) --- */
body.theme-light #win-app-analytics_dashboard .win-window-body,
body.theme-light .win-analytics-container {
    background: #f8fafc !important;
    color: #0f172a !important;
}

body.theme-light .analytics-top-bar h4 {
    color: #0f172a !important;
}

body.theme-light .analytics-top-bar p {
    color: #64748b !important;
}

body.theme-light .analytics-period-tabs {
    background: #e2e8f0 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

body.theme-light .analytics-period-tab {
    color: #475569 !important;
}

body.theme-light .analytics-period-tab:hover {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

body.theme-light .analytics-period-tab.active {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

body.theme-light .analytics-custom-range {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.18) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-light .analytics-custom-range input {
    color: #0f172a !important;
}

body.theme-light .analytics-metric-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .analytics-metric-title {
    color: #64748b !important;
}

body.theme-light .analytics-metric-value {
    color: #0f172a !important;
}

body.theme-light .analytics-metric-sub {
    color: #94a3b8 !important;
}

body.theme-light .analytics-chart-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .analytics-chart-card h5 {
    color: #0f172a !important;
}

body.theme-light .analytics-chart-card span {
    color: #64748b !important;
}

body.theme-light .analytics-chart-svg text {
    fill: #64748b !important;
}

body.theme-light .analytics-panel-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .analytics-panel-card h5 {
    color: #0f172a !important;
}

body.theme-light .analytics-bar-label-row {
    color: #1e293b !important;
}

body.theme-light .analytics-bar-label-row span {
    color: #1e293b !important;
}

body.theme-light .analytics-bar-track {
    background: #e2e8f0 !important;
}

body.theme-light .analytics-table-container {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .analytics-table-container h5 {
    color: #0f172a !important;
}

body.theme-light .analytics-table th {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

body.theme-light .analytics-table td {
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

body.theme-light .analytics-table tr:hover td {
    background: #f8fafc !important;
}



/* ==========================================================================
   Switch Toggle Moderne (Admin Studio)
   ========================================================================== */
.win-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.win-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.win-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px;
}

.win-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.win-toggle-switch input:checked + .win-toggle-slider {
    background: #2563eb;
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.win-toggle-switch input:checked + .win-toggle-slider:before {
    transform: translateX(20px);
}

body.theme-light .win-toggle-slider {
    background: #cbd5e1;
    border-color: #94a3b8;
}



/* ==========================================================================
   DOUBLE GESTION DES VISUELS (ÉDITEUR DE BLOCS HARMONISÉ)
   ========================================================================== */
.editor-visuals-container {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.editor-visuals-title {
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-visuals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .editor-visuals-grid {
        grid-template-columns: 1fr;
    }
}

.editor-visual-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editor-visual-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.editor-visual-card-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.editor-visual-preview-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-icon-badge-preview {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.editor-icon-badge-preview img {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    object-fit: contain;
}

.editor-sync-icon-btn {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.editor-sync-icon-btn:hover {
    background: rgba(56, 189, 248, 0.22);
    color: #7dd3fc;
}

body.theme-light .editor-visuals-container {
    background: rgba(241, 245, 249, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .editor-visual-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .editor-visual-card-label {
    color: #0f172a;
}

body.theme-light .editor-icon-badge-preview {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.12);
    color: #0f172a;
}









