/* 🎨 EXACT LIVE RESULTS REPLICA (FOR PRESENTER MODE) */

/* 1️⃣ LIGHT MODE (DEFAULT MATCHING IMAGE 6465a6) */
:root {
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-card: #e2e8f0;
    
    /* Question Title Banner (Light Blue Accent) */
    --q-bg: #e0e7ff;
    --q-text: #1e3a8a;
    --q-accent: #2563eb;

    /* Option Row Container */
    --row-bg: #ffffff;
    --row-border: #cbd5e1;

    /* Pills (1st & 3rd Columns) - Shared Soft Style */
    --pill-bg: #f8fafc;
    --pill-border: #cbd5e1;
    --pill-text: #0f172a;
    --stats-text: #2563eb;

    /* Progress Bar */
    --bar-bg: #e2e8f0;
    --bar-fill: #3b82f6;

    /* Theme Toggle Button */
    --btn-bg: #ffffff;
    --btn-border: #cbd5e1;
}

/* 2️⃣ DARK MODE MATCHING */
[data-theme="dark"] {
    --bg-body: #0b0f19;
    --bg-card: #131b2e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-card: #1e293b;

    /* Question Title Banner Dark */
    --q-bg: #132238;
    --q-text: #ffffff;
    --q-accent: #2563eb;

    /* Option Row Container Dark */
    --row-bg: #131b2e;
    --row-border: #2a384c;

    /* Pills Dark */
    --pill-bg: #162032;
    --pill-border: #2a384c;
    --pill-text: #ffffff;
    --stats-text: #60a5fa;

    /* Progress Bar Dark */
    --bar-bg: #0f172a;
    --bar-fill: #1e40af;

    /* Theme Toggle Button Dark */
    --btn-bg: #1e293b;
    --btn-border: #475569;
}

/* Base Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    padding: 20px 15px;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* ☀️/🌙 TOGGLE BUTTON */
#themeToggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* QR Code Section */
.qr-section {
    text-align: center;
    margin-bottom: 25px;
}

.qr-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.qr-section img {
    width: 360px;
    height: 360px;
    border-radius: 12px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--pill-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 🎯 MAIN QUESTION CONTAINER (ΕΞΩΤΕΡΙΚΟ CONTAINER ΕΡΩΤΗΣΗΣ) */
.question-block {
    background: var(--bg-card);
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--border-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* 1️⃣ ΤΙΤΛΟΣ ΕΡΩΤΗΣΗΣ (BANNER ΜΕ ΚΑΘΕΤΗ ΓΡΑΜΜΗ ACCENT) */
.question-block h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--q-text);
    background: var(--q-bg);
    padding: 12px 18px;
    border-radius: 8px;
    border-left: 5px solid var(--q-accent);
    margin-bottom: 16px;
}

/* 2️⃣ ΕΞΩΤΕΡΙΚΟ CONTAINER ΚΑΘΕ ΑΠΑΝΤΗΣΗΣ (ROW CONTAINER) */
.option-row-grid {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    background: var(--row-bg) !important;
    border: 1px solid var(--row-border) !important;
    padding: 6px 10px !important;
    border-radius: 30px !important; /* Outer rounded box */
}

/* 3️⃣ ΠΡΩΤΗ ΣΤΗΛΗ: ΚΟΥΤΑΚΙ ΟΝΟΜΑΤΟΣ (INNER PILL) */
.col-title {
    width: 25% !important;
    min-width: 140px !important;
    background: var(--pill-bg) !important;
    border: 1px solid var(--pill-border) !important;
    color: var(--pill-text) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
}

/* ΔΕΥΤΕΡΗ ΣΤΗΛΗ: ΜΠΑΡΑ ΑΠΑΝΤΗΣΕΩΝ */
.col-bar {
    flex: 1 !important;
}

.bar-bg {
    width: 100% !important;
    height: 18px !important;
    background: var(--bar-bg) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid var(--pill-border) !important;
}

.bar {
    height: 100% !important;
    background: var(--bar-fill) !important;
    border-radius: 20px !important;
    transition: width 0.4s ease !important;
}

/* 4️⃣ ΤΡΙΤΗ ΣΤΗΛΗ: ΚΟΥΤΑΚΙ ΠΟΣΟΣΤΟΥ/ΨΗΦΩΝ (ΟΜΟΙΟ ΜΕ ΤΗΝ 1η ΣΤΗΛΗ) */
.col-stats {
    width: 20% !important;
    min-width: 110px !important;
    background: var(--pill-bg) !important; /* Ίδιο background με την 1η στήλη */
    border: 1px solid var(--pill-border) !important;
    color: var(--stats-text) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.col-stats span {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
}

.extend-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.extend-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 300px;
    text-align: center;
    position: relative;
    z-index: 100000;
}

.extend-box button {
    cursor: pointer !important;
    pointer-events: auto !important;
}
