:root {
    /* Palette fournie (roses / cyan) */
    --crushed-berry: #880d1e; /* $crushed-berry */
    --raspberry: #dd2d4a; /* $raspberry - couleur principale */
    --bubblegum-pink: #f26a8d; /* $bubblegum-pink - accent clair */
    --pink-mist: #f49cbb; /* $pink-mist - accent très clair */
    --light-cyan: #cbeef3; /* $light-cyan - arrière-plan doux */

    /* alias utiles pour faciliter la migration */
    --primary: var(--raspberry);
    --primary-dark: var(--crushed-berry);
    --accent: var(--bubblegum-pink);
    --accent-light: var(--pink-mist);
    --bg-cyan: var(--light-cyan);

    /* compléments (anciennement non définis) */
    --electric-aqua: var(--bg-cyan);
    --tropical-teal: var(--accent-light);
    --ink-black: rgba(0,0,0,0.85);
    --sky-blue: var(--bg-cyan);
    --dark-teal: var(--primary-dark);

    --liquid-gradient: linear-gradient(135deg, var(--crushed-berry), var(--raspberry), var(--bubblegum-pink), var(--pink-mist), var(--light-cyan));
    --panel-radius: 4px;
    --border-width: 1px;
}

/* --- BACKGROUND --- */
.blob {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}
.blob-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; right: -50px; }
.blob-2 { width: 350px; height: 350px; background: var(--accent-light); bottom: 0; left: 10%; }

/* --- SIDEBAR --- */
.sidebar-glass {
    width: 280px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}
.logo { font-size: 24px; font-weight: 900; color: var(--primary); font-style: italic; letter-spacing: -1.5px; }
.nav-group label { font-size: 10px; text-transform: uppercase; font-weight: 800; color: #999; margin-bottom: 8px; display: block; }
.nav-item { display: block; padding: 6px 0; color: #333; font-weight: 600; font-size: 14px; text-decoration: none; transition: 0.2s; }
.nav-item.active { color: var(--primary); font-weight: 800; border-right: 3px solid var(--primary); }
.orange-bold { color: var(--primary) !important; font-weight: 900; }
.badge { background: #eee; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 800; }
.suggestion-text { color: var(--crushed-berry); font-size: 12px; font-weight: 800; text-transform: uppercase; background: rgba(242,106,141,0.08); padding: 8px; border-radius: 4px; }

/* --- GLASS PANEL AVEC CADRE DÉGRADÉ --- */
.glass-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-radius: var(--panel-radius);
    padding: 30px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.glass-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--panel-radius);
    /* Utilise border-image pour dessiner un cadre dégradé (évite l'usage des masques non standard) */
    border: var(--border-width) solid transparent;
    border-image: var(--liquid-gradient) 1;
    pointer-events: none;
}

.panel-title { font-size: 16px; font-weight: 900; border-bottom: 3px solid var(--primary); width: fit-content; padding-bottom: 2px; margin-bottom: 25px; text-transform: uppercase; }
.panel-title.border-green { border-bottom-color: #10b981; }

/* --- CONTENU --- */
/* --- CONTENU --- */
.col-title { font-size: 11px; font-weight: 800; color: #888; text-transform: uppercase; margin-bottom: 20px; }
.task { 
    background: white; padding: 12px; border-radius: 2px; margin-bottom: 10px; 
    font-weight: 700; font-size: 13px; border: 1px solid rgba(0,0,0,0.06);
    display: flex; justify-content: space-between; align-items: center;
    transition: all 0.2s;
}
.task:hover { transform: translateX(5px); border-color: var(--primary); }
.task.completed { opacity: 0.5; text-decoration: line-through; border-left: 4px solid #10b981; }
.task.paused { opacity: 0.7; border-left: 4px solid var(--accent-light); } /* Pause => rose pâle */

.stat-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 14px; font-weight: 500; }
.stat-row.highlight { color: var(--primary); font-weight: 800; }

/* --- SOLID DARK --- */
.solid-dark-panel { background: #1a1a1b; color: white; border-radius: var(--panel-radius); padding: 30px; border-bottom: 4px solid var(--primary); }
.sport-tag { font-size: 9px; font-weight: 900; color: #666; margin-bottom: 8px; letter-spacing: 2px; }

/* --- SCROLLBAR PERSONNALISÉE POUR LE PANNEAU SOMBRE --- */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* --- UI --- */
.btn-orange-sq { background: var(--primary); color: white; width: 32px; height: 32px; border-radius: 2px; font-weight: bold; transition: 0.2s; }
.btn-orange-sq:hover { transform: scale(1.1); background: var(--primary-dark); }
.avatar-circle { width: 40px; height: 40px; background: white; border: 1px solid #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 11px; }

/* Utilitaires pour la nouvelle palette */
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: scale(1.02); }

.btn-guest { background: var(--primary-dark); color: var(--bg-cyan); border: 1px solid rgba(203,238,243,0.18); }
.btn-guest:hover { background: var(--primary); color: #001011; }

.text-primary { color: var(--primary) !important; }

/* Petit utilitaire pour compatibilité avec les classes hover utilisées dans le HTML */
.hover\:text-primary:hover { color: var(--primary) !important; }

/* Focus global pour inputs/select (remplace les classes Tailwind spécifiques) */
input:focus, select:focus, textarea:focus {
    border-color: var(--primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(221,45,74,0.12);
}

/* ==========================================
   --- ACCORDÉON RECORDS PERSONNELS ---
========================================== */

/* En-tête du sport */
.record-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px; border-radius: 2px; cursor: pointer;
    background: var(--primary); /* couleur principale */
    border: 1px solid var(--primary);
    color: white; transition: background-color 0.2s;
}
.record-header:hover { filter: brightness(0.95); }

.record-icon { color: var(--electric-aqua); font-size: 14px; width: 16px; text-align: center; }
.record-header-title { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; }
.record-count { font-size: 9px; font-weight: bold; background: var(--ink-black); color: var(--sky-blue); padding: 2px 8px; border-radius: 12px; }
.chevron-icon { color: var(--tropical-teal); font-size: 12px; transition: transform 0.3s; }

/* Élément de la liste (Chrono) */
.record-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 8px 8px 12px; margin-left: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid transparent;
    border-radius: 0 2px 2px 0; transition: all 0.2s;
}
.record-item:hover {
    background: rgba(242,106,141,0.12);
    border-color: rgba(242,106,141,0.22);
}

.record-dist { font-size: 14px; font-weight: bold; color: white; }
.record-time { font-size: 12px; font-weight: 900; color: var(--tropical-teal); letter-spacing: 0.05em; }
.record-pace { font-size: 9px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; background: var(--ink-black); color: var(--sky-blue); padding: 2px 8px; border-radius: 2px; margin-left: 8px; }

/* Bouton Supprimer au survol */
.record-delete { color: var(--dark-teal); opacity: 0; transition: 0.2s; padding: 0 8px; }
.record-item:hover .record-delete { opacity: 1; }
.record-delete:hover { color: #ef4444; } /* Rouge suppression */
