﻿/* =========================================
   Admin Skins for ChronoReply
   ========================================= */

/* 1. Dark Obsidian (Défaut) */
.skin-dark {
    --bg-main: #020617;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #020617;
    --bg-sidebar: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-hover: rgba(255, 255, 255, 0.05);
    --sidebar-active: rgba(91, 124, 250, 0.15);
    --sidebar-active-text: #8fd3ff;
    --sidebar-border-right: rgba(255, 255, 255, 0.05);

    --primary: #5b7cfa;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --card-bg: #0f172a;
    --surface-raised: #1e293b;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

/* 2. Pure Arctic (Light Premium) - NOT pure white, slate mist */
.skin-light {
    --bg-main: #f8fafc;
    --bg-gradient-start: #f0f4f8;
    --bg-gradient-end: #e8edf5;
    --bg-sidebar: #e8edf5;
    --sidebar-text: #3a4a5c;
    --sidebar-hover: rgba(37, 99, 235, 0.07);
    --sidebar-active: rgba(37, 99, 235, 0.12);
    --sidebar-active-text: #1d4ed8;
    --sidebar-border-right: #d1dbe8;

    --primary: #2563eb;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --card-bg: #ffffff;
    --surface-raised: #ffffff;
    --surface-hover: #f0f4f8;
    --border-color: #d1dbe8;
    --glass-bg: #e8edf5;
    --text-main: #1e293b;
    --text-muted: #546780;
    --text-highlight: #1d4ed8;

    /* Semantic colors — adjusted for light background WCAG AA */
    --success: #047857;
    --danger: #dc2626;
    --warning: #b45309;
}

/* 3. Midnight Amethyst (Royal Purple) */
.skin-midnight {
    --bg-main: #0c0a1f;
    --bg-gradient-start: #1a1635;
    --bg-gradient-end: #0c0a1f;
    --bg-sidebar: #13102b;
    --sidebar-text: #b1a9db;
    --sidebar-hover: rgba(124, 58, 237, 0.1);
    --sidebar-active: rgba(124, 58, 237, 0.2);
    --sidebar-active-text: #c4b5fd;
    --sidebar-border-right: rgba(124, 58, 237, 0.1);

    --primary: #7c3aed;
    --primary-gradient: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
    --card-bg: #1a1635;
    --surface-raised: #252145;
    --border-color: rgba(124, 58, 237, 0.2);
    --text-main: #f5f3ff;
    --text-muted: #a78bfa;
}

/* 4. Deep Emerald (Vibrant Forest) */
.skin-emerald {
    --bg-main: #022c22;
    --bg-gradient-start: #064e3b;
    --bg-gradient-end: #022c22;
    --bg-sidebar: #022c22;
    --sidebar-text: #a7f3d0;
    --sidebar-hover: rgba(16, 185, 129, 0.1);
    --sidebar-active: rgba(16, 185, 129, 0.2);
    --sidebar-active-text: #34d399;
    --sidebar-border-right: rgba(16, 185, 129, 0.1);

    --primary: #10b981;
    --primary-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --card-bg: #064e3b;
    --surface-raised: #065f46;
    --border-color: rgba(16, 185, 129, 0.2);
    --text-main: #ecfdf5;
    --text-muted: #6ee7b7;
}

/* 5. Crimson Sunset (Imperial Red) */
.skin-luxury {
    --bg-main: #1a0a0a;
    --bg-gradient-start: #2d0f0f;
    --bg-gradient-end: #1a0a0a;
    --bg-sidebar: #240c0c;
    --sidebar-text: #fecaca;
    --sidebar-hover: rgba(225, 29, 72, 0.1);
    --sidebar-active: rgba(225, 29, 72, 0.2);
    --sidebar-active-text: #fb7185;
    --sidebar-border-right: rgba(225, 29, 72, 0.1);

    --primary: #e11d48;
    --primary-gradient: linear-gradient(135deg, #be123c 0%, #fb7185 100%);
    --card-bg: #2d0f0f;
    --surface-raised: #3f1616;
    --border-color: rgba(225, 29, 72, 0.2);
    --text-main: #fff1f2;
    --text-muted: #fda4af;
}


/* Specific overrides for light skin to ensure readability */
.skin-light .dashboard-header-dark-fullwidth {
    background: linear-gradient(135deg, #1e40af, #2563eb) !important;
    border-bottom: 1px solid rgba(37, 99, 235, 0.3) !important;
}

/* Midnight Amethyst Header */
.skin-midnight .dashboard-header-dark-fullwidth {
    background: linear-gradient(135deg, #1a1635, #4c1d95) !important;
    border-bottom: 1px solid rgba(124, 58, 237, 0.3) !important;
}

/* Emerald Forest Header */
.skin-emerald .dashboard-header-dark-fullwidth {
    background: linear-gradient(135deg, #022c22, #065f46) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* Crimson Sunset Header */
.skin-luxury .dashboard-header-dark-fullwidth {
    background: linear-gradient(135deg, #1a0a0a, #9f1239) !important;
    border-bottom: 1px solid rgba(225, 29, 72, 0.3) !important;
}


/* UI Selector Styles */
.skin-bubble {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.skin-bubble:hover {
    transform: scale(1.15);
}

.skin-bubble.active {
    border-color: #5b7cfa;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 8px rgba(91, 124, 250, 0.4);
}

.skin-bubble.active::after {
    content: '\F272';
    /* bi-check */
    font-family: bootstrap-icons;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: white;
}

.skin-bubble[title="Clair"].active::after {
    color: #0f172a;
}