/* ================================================================
   ACADEMY LIVE SESSIONS — Styles pour sessions live & webinaires
   Fichier séparé car ga-modal et fce-live absents du bundle
   ================================================================ */

/* ── Bouton + Nouvelle session : lisible dans tous les thèmes ── */
#btn-add-live-session,
.btn-add-live-session {
    background: var(--accent, #8b5cf6) !important;
    color: #fff !important;
    border-color: var(--accent, #8b5cf6) !important;
    font-weight: 600;
}
#btn-add-live-session:hover,
.btn-add-live-session:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ── Conteneur section live dans l'éditeur de formation ── */
.fce-live-panel {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.fce-live-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fce-live-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

/* ── Ligne d'une session live ── */
.fce-live-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-secondary, rgba(255,255,255,0.04));
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.2s;
}
.fce-live-row:hover {
    border-color: var(--accent, #8b5cf6);
}

.fce-live-row-main {
    flex: 1;
    min-width: 0;
}

.fce-live-row-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fce-live-row-meta {
    font-size: 12px;
    color: var(--text-muted, #888);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.fce-live-row-desc {
    font-size: 12px;
    color: var(--text-secondary, #aaa);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fce-live-row-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.fce-live-edit-btn,
.fce-live-delete-btn {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    font-weight: 500;
}
.fce-live-edit-btn {
    background: rgba(139,92,246,0.15);
    border-color: rgba(139,92,246,0.35);
    color: #a78bfa;
}
.fce-live-edit-btn:hover { background: rgba(139,92,246,0.28); }
.fce-live-delete-btn {
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.3);
    color: #f87171;
}
.fce-live-delete-btn:hover { background: rgba(239,68,68,0.25); }

/* ── Badges de statut session ── */
.fce-live-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fce-live-status.scheduled  { background: rgba(59,130,246,0.15); color: #60a5fa; }
.fce-live-status.live       { background: rgba(239,68,68,0.18); color: #f87171; animation: pulse-live 1.4s ease-in-out infinite; }
.fce-live-status.ended      { background: rgba(107,114,128,0.18); color: #9ca3af; }
.fce-live-status.cancelled  { background: rgba(239,68,68,0.1); color: #f87171; }

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

/* ── Modal overlay (ga-modal) ── */
.ga-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.72) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 9000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    animation: ga-fadein 0.18s ease;
}

@keyframes ga-fadein { from { opacity: 0; } to { opacity: 1; } }

.ga-modal {
    background: var(--bg-card, #1a1a2e) !important;
    border: 1px solid var(--border-color, rgba(255,255,255,0.12)) !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 540px !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    box-shadow: 0 24px 64px rgba(0,0,0,0.65) !important;
    animation: ga-modal-in 0.22s cubic-bezier(0.34,1.4,0.64,1);
}

@keyframes ga-modal-in {
    from { transform: scale(0.93) translateY(12px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.ga-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
}

.ga-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #e2e8f0);
}

.ga-modal-close {
    background: rgba(255,255,255,0.07);
    border: none;
    color: var(--text-muted, #888);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}
.ga-modal-close:hover {
    background: rgba(255,255,255,0.14);
    color: var(--text-primary, #e2e8f0);
}

.ga-modal-body {
    padding: 20px;
}

.ga-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
}

/* ── Champs dans le modal live ── */
.ga-modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ga-modal .form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #aaa);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ga-modal .form-control {
    background: var(--bg-input, rgba(255,255,255,0.05));
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 8px;
    padding: 9px 12px;
    color: var(--text-primary, #e2e8f0);
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
    font-family: inherit;
}
.ga-modal .form-control:focus {
    outline: none;
    border-color: var(--accent, #8b5cf6);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.18);
}
.ga-modal select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}
.ga-modal textarea.form-control { resize: vertical; min-height: 64px; }

/* ── Sélecteurs de plateforme ── */
.lm-plat-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 10px;
    background: var(--bg-secondary, rgba(255,255,255,0.04));
    border: 2px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.18s;
    text-align: center;
}
.lm-plat-opt:hover {
    border-color: rgba(139,92,246,0.5);
    background: rgba(139,92,246,0.08);
}
.lm-plat-opt.selected {
    border-color: var(--accent, #8b5cf6);
    background: rgba(139,92,246,0.15);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.18);
}
.lm-plat-icon { font-size: 22px; line-height: 1; }
.lm-plat-name { font-size: 13px; font-weight: 700; color: var(--text-primary, #e2e8f0); }
.lm-plat-sub  { font-size: 11px; color: var(--text-muted, #888); }
