/* ============================================
   SESSION PLANNER — Caly-Quiz IRVE LMS
   Styles for session planning, day view & detail
   Version 1.0 — Feb 2026
   ============================================ */

/* ─── SHARED VARIABLES ───────────────────── */
.session-screen,
.session-detail-screen {
    --sp-dark: #0f172a;
    --sp-dark-80: rgba(15, 23, 42, 0.8);
    --sp-surface: #1e293b;
    --sp-surface-light: #162032;
    --sp-primary: #f59e0b;
    --sp-primary-dark: #d97706;
    --sp-green: #22c55e;
    --sp-muted: #64748b;
    --sp-border: rgba(245, 166, 35, 0.15);
    --sp-radius: 12px;
    --sp-side-pad: 40px;
}

/* ─── SESSION SCREEN LAYOUT ──────────────── */
.session-screen {
    background: var(--sp-dark);
    color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.session-screen .sp-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.session-screen .sp-scroll::-webkit-scrollbar { width: 6px; }
.session-screen .sp-scroll::-webkit-scrollbar-track { background: var(--sp-dark); }
.session-screen .sp-scroll::-webkit-scrollbar-thumb { background: var(--sp-primary); border-radius: 3px; }

/* ─── SP AD BANNER (compact slideshow) ───── */
.sp-ad-banner {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sp-ad-track {
    position: absolute;
    inset: 0;
}
.sp-ad-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--sp-ad-transition, 800ms) ease;
    pointer-events: none;
}
.sp-ad-slide--active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.sp-ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sp-ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 2;
}
.sp-ad-overlay strong {
    font-size: 0.95rem;
    font-weight: 600;
}
.sp-ad-overlay span {
    font-size: 0.78rem;
    opacity: 0.85;
}
.sp-ad-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 32px;
    height: 44px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.sp-ad-arrow:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.8);
}
.sp-ad-arrow--left {
    left: 0;
    border-radius: 0 6px 6px 0;
}
.sp-ad-arrow--right {
    right: 0;
    border-radius: 6px 0 0 6px;
}
.sp-ad-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 6px;
}
.sp-ad-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.sp-ad-dot:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.3);
}
.sp-ad-dot--active {
    background: var(--sp-primary, #f59e0b);
    border-color: var(--sp-primary, #f59e0b);
    transform: scale(1.2);
}

/* ─── SESSION HEADER ─────────────────────── */
.sp-header {
    padding: 24px var(--sp-side-pad) 16px;
    flex-shrink: 0;
}

.sp-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sp-title {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.sp-title em {
    color: var(--sp-primary);
    font-style: normal;
}

.sp-actions {
    display: flex;
    gap: 10px;
}

.sp-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.sp-btn:hover { transform: scale(1.03); }

.sp-btn-primary {
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-primary-dark));
    color: var(--sp-dark);
}

.sp-btn-outline {
    background: transparent;
    border: 1px solid var(--sp-muted);
    color: #94a3b8;
}

.sp-btn-outline:hover {
    border-color: var(--sp-primary);
    color: var(--sp-primary);
}

/* ─── SESSION STATS ──────────────────────── */
.sp-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sp-stat {
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sp-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--sp-primary);
    font-family: 'Outfit', sans-serif;
}

.sp-stat-label {
    font-size: 11px;
    color: var(--sp-muted);
}

/* ─── CONFIG ROW ─────────────────────────── */
.sp-config {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px var(--sp-side-pad);
    background: rgba(30, 58, 95, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.sp-config-label {
    font-size: 13px;
    color: #94a3b8;
}

.sp-config-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 8px;
    padding: 8px 14px;
    color: #fff;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color-scheme: dark;
}

/* ─── DAY SECTIONS (Netflix rows) ────────── */
.sp-days-container {
    padding: 16px var(--sp-side-pad) 40px;
}

.sp-day-section {
    margin-bottom: 32px;
}

.sp-day-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.sp-day-badge {
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-primary-dark));
    color: var(--sp-dark);
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.sp-day-badge.sp-en-cours {
    animation: sp-pulse 2s infinite;
}

@keyframes sp-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.4); }
    50% { box-shadow: 0 0 12px 4px rgba(245, 166, 35, 0.2); }
}

.sp-day-badge.sp-future {
    background: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
}

.sp-day-badge.sp-done {
    background: rgba(34, 197, 94, 0.3);
    color: var(--sp-green);
}

.sp-day-theme {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.sp-day-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.sp-day-tag {
    font-size: 12px;
    color: var(--sp-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
}

.sp-day-tag em {
    color: var(--sp-primary);
    font-style: normal;
    font-weight: 600;
}

.sp-progress-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-progress-bar-mini {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.sp-progress-fill-mini {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s;
}

.sp-progress-text-mini {
    font-size: 11px;
    font-weight: 600;
}

/* ─── COURSE CARDS IN SESSION ────────────── */
.sp-row-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
}

.sp-row-scroll::-webkit-scrollbar { height: 4px; }
.sp-row-scroll::-webkit-scrollbar-thumb { background: var(--sp-primary); border-radius: 2px; }

/* ─── SESSION ROW SCROLL CONTAINER + ARROWS ─── */
.sp-row-scroll-container {
    position: relative;
    overflow: visible;
}

.sp-row-arrow {
    position: absolute;
    top: 0;
    bottom: 8px;
    width: 48px;
    background: rgba(30, 30, 46, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.3s ease, background 0.2s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-row-scroll-container:hover .sp-row-arrow:not(.sp-arrow-hidden) {
    opacity: 1;
}

.sp-row-arrow:hover {
    opacity: 1;
    background: rgba(30, 30, 46, 0.85);
}

.sp-row-arrow--left {
    left: 0;
    border-radius: 0 6px 6px 0;
}

.sp-row-arrow--right {
    right: 0;
    border-radius: 6px 0 0 6px;
}

.sp-arrow-hidden {
    display: none;
}

/* Centrage quand toutes les cartes sont visibles */
.sp-row-scroll.sp-row-centered {
    justify-content: center;
}

/* ─── COURSE CARDS v2.0 (informative style) ──── */
.sp-course-card {
    min-width: 240px;
    max-width: 240px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sp-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sp-course-card.sp-card-done { opacity: 0.75; }
.sp-course-card.sp-card-active {
    border-color: #f59e0b;
    box-shadow: 0 0 16px rgba(245, 166, 35, 0.25);
}

/* ─ Card Header (gradient) ─ */
.sp-card-header {
    padding: 0.65rem 0.75rem;
    min-height: 62px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 12px 12px 0 0;
}

.sp-card-header-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
}

.sp-card-header-title {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.22;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    flex: 1;
}

.sp-card-header-badges {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.sp-card-header-badge {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ─ Status Badges (session-specific) ─ */
.sp-card-status {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.02em;
}

.sp-card-status-done { background: rgba(34, 197, 94, 0.92); color: #fff; }
.sp-card-status-current { background: rgba(245, 166, 35, 0.92); color: #1a1a2e; }
.sp-card-status-pending { background: rgba(100, 116, 139, 0.65); color: #fff; }

/* ─ Remove Button ─ */
.sp-card-remove-btn {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    padding: 0;
    line-height: 1;
}
.sp-course-card:hover .sp-card-remove-btn { opacity: 1; }
.sp-card-remove-btn:hover { background: #dc2626; }

/* ─ Done Overlay ─ */
.sp-card-done-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-radius: 12px;
}

.sp-card-done-check {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

/* ─ Card Body (topics list) ─ */
.sp-card-body {
    padding: 0.5rem 0.7rem;
    flex: 1;
    min-height: 80px;
}

.sp-topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sp-topic-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.7rem;
    color: #475569;
    line-height: 1.3;
}

.sp-topic-check {
    width: 13px;
    height: 13px;
    min-width: 13px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    transition: all 0.2s;
}

.sp-topic-check--done {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
    font-size: 8px;
}
.sp-topic-check--done::after { content: '\2713'; }

.sp-topic-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-topic-more {
    font-size: 0.65rem;
    color: #f59e0b;
    font-style: italic;
    padding-left: 19px;
    margin-top: 2px;
}

/* ─ Card Footer (progress + info) ─ */
.sp-card-footer {
    padding: 0.45rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid #f1f5f9;
}

.sp-progress-row {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-card-progress-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.sp-card-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.sp-card-progress-text {
    font-size: 0.62rem;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.sp-info-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.sp-info-btn:hover {
    border-color: #f59e0b;
    color: #f59e0b;
    background: rgba(245, 166, 35, 0.08);
}

/* ─ Footer Actions (info + move buttons) ─ */
.sp-card-footer-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* ─ Move Buttons ↑/↓ ─ */
.sp-move-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.2s;
    padding: 0;
}
.sp-move-btn:hover {
    border-color: #f59e0b;
    color: #f59e0b;
    background: rgba(245, 166, 35, 0.08);
}
.sp-move-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ─── EMPTY SESSION STATE ────────────────── */
.sp-empty {
    text-align: center;
    padding: 80px 40px;
}

.sp-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.sp-empty-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sp-empty-text {
    font-size: 14px;
    color: var(--sp-muted);
    margin-bottom: 24px;
}

/* ─── HINT FOOTER ────────────────────────── */
.sp-hint {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #475569;
}

/* ═══════════════════════════════════════════
   DAY DETAIL VIEW
   ═══════════════════════════════════════════ */

.session-detail-screen {
    background: var(--sp-dark);
    color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ─── BACK BAR ───────────────────────────── */
.sd-back-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px var(--sp-side-pad);
    background: rgba(30, 58, 95, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.sd-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sp-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.sd-back-btn:hover { text-decoration: underline; }

.sd-day-title {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.sd-day-title em {
    color: var(--sp-primary);
    font-style: normal;
}

.sd-day-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sd-meta-badge {
    background: rgba(245, 166, 35, 0.15);
    color: var(--sp-primary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.sd-meta-badge-green {
    background: rgba(34, 197, 94, 0.15);
    color: var(--sp-green);
}

/* ─── PROGRESS BAR ───────────────────────── */
.sd-progress-section {
    padding: 16px var(--sp-side-pad);
    flex-shrink: 0;
}

.sd-progress-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sd-progress-label {
    font-size: 13px;
    color: #94a3b8;
    white-space: nowrap;
}

.sd-progress-full {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.sd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sp-primary), var(--sp-green));
    border-radius: 4px;
    transition: width 0.5s;
}

.sd-progress-pct {
    font-size: 13px;
    color: var(--sp-primary);
    font-weight: 600;
    white-space: nowrap;
}

/* ─── COURSE COLUMNS ─────────────────────── */
.sd-columns {
    display: flex;
    gap: 20px;
    padding: 20px var(--sp-side-pad) 40px;
    overflow-x: auto;
    flex: 1;
}

.sd-columns::-webkit-scrollbar { height: 6px; }
.sd-columns::-webkit-scrollbar-thumb { background: var(--sp-primary); border-radius: 3px; }

.sd-column {
    min-width: 320px;
    max-width: 320px;
    background: linear-gradient(145deg, var(--sp-surface), var(--sp-surface-light));
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(245, 166, 35, 0.1);
    flex-shrink: 0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.sd-column:hover { border-color: rgba(245, 166, 35, 0.3); }
.sd-column.sd-col-active {
    border-color: var(--sp-primary);
    box-shadow: 0 0 24px rgba(245, 166, 35, 0.2);
}

.sd-col-header {
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-primary-dark));
    padding: 16px 20px;
    flex-shrink: 0;
}

.sd-col-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--sp-dark);
    font-family: 'Outfit', sans-serif;
}

.sd-col-meta {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 4px;
    display: flex;
    gap: 12px;
}

.sd-col-body {
    padding: 12px 0;
    flex: 1;
    overflow-y: auto;
}

.sd-chapter {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    transition: all 0.2s;
    cursor: pointer;
}

.sd-chapter:hover { background: rgba(245, 166, 35, 0.05); }

.sd-chapter-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.sd-chapter.sd-done .sd-chapter-check {
    background: var(--sp-green);
    border-color: var(--sp-green);
    color: #fff;
}

.sd-chapter.sd-current .sd-chapter-check {
    border-color: var(--sp-primary);
    background: rgba(245, 166, 35, 0.2);
    color: var(--sp-primary);
}

.sd-chapter-text {
    font-size: 13px;
    flex: 1;
}

.sd-chapter.sd-done .sd-chapter-text {
    color: var(--sp-muted);
    text-decoration: line-through;
}

.sd-chapter.sd-current .sd-chapter-text {
    color: var(--sp-primary);
    font-weight: 600;
}

.sd-chapter-duration {
    font-size: 11px;
    color: #475569;
    flex-shrink: 0;
}

.sd-col-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.sd-col-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sd-col-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.sd-col-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s;
}

.sd-col-progress-text {
    font-size: 11px;
    color: #475569;
}

.sd-launch-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.sd-launch-btn:hover { transform: scale(1.02); }

.sd-launch-btn-primary {
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-primary-dark));
    color: var(--sp-dark);
}

.sd-launch-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--sp-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sd-launch-btn-done {
    background: rgba(34, 197, 94, 0.15);
    color: var(--sp-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ═══════════════════════════════════════════
   FLOATING SESSION BAR (on home page)
   ═══════════════════════════════════════════ */

.nfx-session-float {
    /* Own variables (bar lives in body, outside session-screen scope) */
    --sp-primary: #f59e0b;
    --sp-primary-dark: #d97706;
    --sp-muted: #64748b;
    --sp-dark: #0f172a;

    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    right: auto;
    background: #1e293b;
    border: 2px solid var(--sp-primary);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(245,166,35,0.2);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 200;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    max-width: 620px;
    width: auto;
}

.nfx-session-float.sp-visible {
    transform: translateX(-50%) translateY(0);
}

.nfx-session-float-info {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.nfx-session-float-count {
    font-size: 26px;
    font-weight: 800;
    color: var(--sp-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.nfx-session-float-label {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.2;
}

.nfx-session-float-duration {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.nfx-session-float-detail {
    font-size: 11px;
    color: var(--sp-muted);
    margin-top: 1px;
}

.nfx-session-float-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 4px;
}

.nfx-session-float-actions .sp-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: none;
}

.nfx-session-float-actions .sp-btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.25);
    color: #cbd5e1;
}

.nfx-session-float-actions .sp-btn-outline:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239,68,68,0.1);
}

.nfx-session-float-actions .sp-btn-primary {
    background: var(--sp-primary);
    color: #0f172a;
    border: none;
    box-shadow: 0 2px 12px rgba(245,166,35,0.4);
}

.nfx-session-float-actions .sp-btn-primary:hover {
    background: #fbbf24;
    box-shadow: 0 4px 20px rgba(245,166,35,0.6);
    transform: translateY(-1px);
}

.nfx-session-float-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

/* ─── COURSE SELECTION BUTTON (on home page cards) ─── */
.nfx-select-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 20;
    color: #fff;
    opacity: 0.5;
}

.nfx-card:hover .nfx-select-btn,
.nfx-select-btn.sp-selected {
    opacity: 1;
    pointer-events: auto;
}

.nfx-select-btn:hover {
    border-color: var(--sp-primary);
    background: rgba(245, 166, 35, 0.3);
}

.nfx-select-btn.sp-selected {
    background: var(--sp-primary);
    border-color: var(--sp-primary);
    color: var(--sp-dark);
}

.nfx-card.sp-card-selected {
    outline: 2px solid var(--sp-primary);
    outline-offset: -2px;
}

.nfx-card.sp-card-selected .nfx-card-header {
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.3);
}

/* ─── SELECTION MODE BANNER ──────────────── */
.sp-selection-banner {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}
.sp-selection-banner-text { flex: 1; }
.sp-selection-banner-close {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.sp-selection-banner-close:hover { background: rgba(0, 0, 0, 0.35); }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 1200px) {
    .session-screen, .session-detail-screen { --sp-side-pad: 24px; }
    .sp-course-card { min-width: 200px; max-width: 200px; }
    .sd-column { min-width: 280px; max-width: 280px; }
}

@media (max-width: 768px) {
    .session-screen, .session-detail-screen { --sp-side-pad: 16px; }
    .sp-title { font-size: 20px; }
    .sp-title-row { flex-direction: column; gap: 12px; align-items: flex-start; }
    .sp-stats { gap: 12px; }
    .sp-stat { padding: 8px 12px; }
    .sp-stat-value { font-size: 16px; }
    .sp-day-header { gap: 8px; }
    .sp-day-theme { font-size: 16px; }
    .sp-day-meta { margin-left: 0; }
    .sp-course-card { min-width: 180px; max-width: 180px; }
    .sd-column { min-width: 260px; max-width: 260px; }
    .sd-back-bar { gap: 10px; }
    .sd-day-title { font-size: 18px; }
    .nfx-session-float { padding: 10px 16px; max-width: 95vw; gap: 10px; bottom: 12px; flex-wrap: wrap; justify-content: center; }
    .nfx-session-float-count { font-size: 22px; }
    .nfx-session-float-actions .sp-btn { padding: 8px 14px; font-size: 13px; }
    .sp-selection-banner { padding: 10px 16px; font-size: 13px; }
    .sp-move-btn { width: 20px; height: 20px; }
    .sp-row-arrow { width: 36px; font-size: 1.6rem; }
}
