/* Πηγή: SETUP_GUIDE §4.6 (UNILEVER MERCH shared.css), χωρίς το μπλοκ wizard.
   Σκούρο θέμα της κύριας εφαρμογής των promoters + login. Χρώματα = τα tokens του tailwind.config.js. */
[x-cloak] { display: none !important; }

html { color-scheme: dark; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #041329;
    -webkit-tap-highlight-color: transparent;
}

/* ===== Login canvas ===== */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

.scan-line {
    position: fixed; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(38,254,220,0) 10%, rgba(38,254,220,0.4) 50%, rgba(38,254,220,0) 90%, transparent 100%);
    z-index: 1; pointer-events: none; opacity: 0.6;
    animation: scanDown 6s linear infinite;
}
@keyframes scanDown { 0% { top: -2px; } 100% { top: 100vh; } }

.hex-icon { width: 64px; height: 64px; position: relative; display: inline-flex; align-items: center; justify-content: center; }
.hex-icon::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(38,254,220,0.2), rgba(174,199,246,0.2));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexPulse 3s ease-in-out infinite;
}
@keyframes hexPulse { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

.login-card {
    background: rgba(4, 19, 41, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(38, 254, 220, 0.15);
    border-radius: 1rem;
    box-shadow: 0 0 40px rgba(38, 254, 220, 0.05), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: border-color 0.3s;
}
.login-card:hover { border-color: rgba(38, 254, 220, 0.25); }

.login-input {
    width: 100%;
    padding: 0.6rem 0.75rem 0.6rem 2.5rem;
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: rgba(4, 19, 41, 0.6);
    color: #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.login-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-color: rgba(38, 254, 220, 0.6);
    box-shadow: 0 0 0 3px rgba(38, 254, 220, 0.1), 0 0 20px rgba(38, 254, 220, 0.05);
}
.login-input::placeholder { color: #475569; }
.login-input:focus::placeholder { color: #94a3b8; }
.input-group:focus-within .input-icon { color: #0f172a; transition: color 0.2s; }

.login-label {
    display: block; font-size: 0.75rem; font-weight: 500; color: #94a3b8;
    margin-bottom: 0.375rem; text-transform: uppercase; letter-spacing: 0.05em;
}

.login-btn {
    width: 100%; padding: 0.65rem 1rem; border-radius: 0.5rem;
    font-weight: 600; font-size: 0.875rem;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    border: 1px solid rgba(38, 254, 220, 0.4);
    background: linear-gradient(135deg, rgba(38, 254, 220, 0.15) 0%, rgba(174, 199, 246, 0.15) 100%);
    color: #26fedc; cursor: pointer; transition: all 0.2s;
}
.login-btn:hover { border-color: rgba(38, 254, 220, 0.7); box-shadow: 0 0 25px rgba(38, 254, 220, 0.15); }
.login-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Κέλυφος: πλευρικό μενού σταθερό σε υπολογιστή, συρταρωτό σε κινητό ===== */
.app-top {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #112036; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.app-side {
    position: fixed; inset: 0 auto 0 0; z-index: 60; width: 16rem;
    display: flex; flex-direction: column;
    background: #112036; border-right: 1px solid rgba(255,255,255,0.1);
    transform: translateX(-100%); transition: transform 0.2s ease;
}
.app-side.is-open { transform: translateX(0); }
.app-side-bg { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,0.6); display: none; }
.app-side-bg.is-open { display: block; }
.app-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.7rem 0.75rem; border-radius: 0.75rem;
    font-size: 0.875rem; color: #d6e3ff; transition: background 0.15s;
}
.app-link:hover { background: rgba(255,255,255,0.05); }
.app-link .material-symbols-outlined { color: #c4c6cf; }
.app-link.is-on { background: rgba(38,254,220,0.1); color: #26fedc; font-weight: 600; }
.app-link.is-on .material-symbols-outlined { color: #26fedc; }
.app-main { max-width: 80rem; margin: 0 auto; padding: 1rem 1rem 6rem; }

@media (min-width: 1024px) {
    .app-side { transform: none; }
    .app-side-bg { display: none !important; }
    .app-shifted { padding-left: 16rem; }
    .app-burger { display: none; }
}

/* ===== Κάρτες ===== */
.q-card {
    background: #112036;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1rem;
}
.kpi-num { font-size: 1.5rem; line-height: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #d6e3ff; }
.kpi-lbl { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #c4c6cf; }

/* ===== Φόρμες ===== */
.fld-label { display: block; font-size: 0.75rem; font-weight: 500; color: #c4c6cf; margin-bottom: 0.25rem; }
.fld-input {
    width: 100%; padding: 0.6rem 0.75rem; min-height: 2.6rem;
    background: #1c2a41; color: #d6e3ff;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 0.6rem;
    font-size: 16px; /* κάτω από 16px το iPhone κάνει ζουμ στο πεδίο */
}
@media (min-width: 768px) { .fld-input { font-size: 0.875rem; } }
.fld-input:focus { outline: none; border-color: rgba(38,254,220,0.5); box-shadow: 0 0 0 3px rgba(38,254,220,0.08); }
.fld-input::placeholder { color: #8e9099; }
.fld-input option { background: #1c2a41; color: #d6e3ff; }

.btn-a, .btn-g, .btn-d {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.55rem 0.9rem; min-height: 2.6rem; border-radius: 0.6rem;
    font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.btn-a { background: rgba(38,254,220,0.12); border: 1px solid rgba(38,254,220,0.45); color: #26fedc; }
.btn-a:hover { border-color: rgba(38,254,220,0.8); }
.btn-g { background: transparent; border: 1px solid rgba(255,255,255,0.12); color: #c4c6cf; }
.btn-g:hover { background: rgba(255,255,255,0.05); }
.btn-d { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.4); color: #fca5a5; }
.btn-d:hover { border-color: rgba(248,113,113,0.7); }
.btn-a:disabled, .btn-g:disabled, .btn-d:disabled { opacity: 0.4; cursor: not-allowed; }
.card-act { width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; transition: background 0.15s; }
.card-act:hover { background: rgba(255,255,255,0.05); }

/* Οι promoters μπαίνουν κατά 99% από κινητό (Τάσος 05/11/2026): η βασική ενέργεια κάτω, στον αντίχειρα.
   Τα κουμπιά των καρτών (.card-act) έχουν στόχο αφής 40px. */
@media (max-width: 767px) {
    .main-action {
        position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 30;
        min-height: 3.25rem; font-size: 1rem;
        background: #0d3a45; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }
}

/* ===== Πίνακες ===== */
.data-table { width: 100%; font-size: 0.875rem; }
.data-table th {
    padding: 0.6rem 0.75rem; text-align: left; white-space: nowrap;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    color: #c4c6cf; background: #1c2a41;
}
.data-table td { padding: 0.6rem 0.75rem; border-top: 1px solid rgba(255,255,255,0.05); }
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.data-table tfoot td { font-weight: 600; background: #1c2a41; }

/* ===== Παράθυρα ===== */
.modal-wrap {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center; padding: 1rem;
    background: rgba(0,0,0,0.7);
}
.modal-box {
    width: 100%; max-width: 28rem; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto;
    padding: 1.25rem;
    background: #112036; border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem;
}

/* Επιλογή προϊόντος: ολόκληρη οθόνη πάνω από τη φόρμα (όπως στο APK) */
.picker-screen { position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; background: #041329; }
.chip-row { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0 1rem 0.75rem; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.8125rem; white-space: nowrap; color: #c4c6cf; border: 1px solid rgba(255,255,255,0.12); }
.chip.is-on { color: #26fedc; background: rgba(38,254,220,0.12); border-color: rgba(38,254,220,0.45); font-weight: 600; }
.pick-row { display: block; width: 100%; text-align: left; padding: 0.75rem 1rem; color: #d6e3ff; border-bottom: 1px solid rgba(255,255,255,0.05); }
.pick-row:active, .pick-row.is-on { background: rgba(38,254,220,0.08); }
.pick-row mark { background: rgba(38,254,220,0.25); color: inherit; border-radius: 2px; }

.bar-track { height: 0.5rem; border-radius: 999px; background: #1c2a41; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #26fedc, #aec7f6); transition: width 0.3s ease; }

/* Στατιστικά */
.tab-btn { padding: 0.6rem 0.9rem; font-size: 0.875rem; font-weight: 600; color: #c4c6cf; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab-btn.is-on { color: #26fedc; border-bottom-color: #26fedc; }
