/* ── Variables ───────────────────────────────────────────── */ :root { --bg: #f4f5f7; --surface: #ffffff; --border: #e1e4e8; --text: #1a1a2e; --text-sub: #6b7280; --primary: #1a237e; --primary-h: #283593; --accent: #3949ab; --success: #1b5e20; --success-bg:#e8f5e9; --danger: #b71c1c; --danger-bg: #ffebee; --shadow: 0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06); --radius: 14px; --radius-sm: 8px; } /* ── Reset ───────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; font-size: 15px; } .hidden { display: none !important; } /* ── Buttons ─────────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: var(--radius-sm); border: none; cursor: pointer; font-size: 14px; font-weight: 600; transition: opacity .15s, transform .1s, background .15s; white-space: nowrap; text-decoration: none; } .btn:hover { opacity: .88; } .btn:active { transform: scale(.97); } .btn:disabled{ opacity: .45; cursor: not-allowed; pointer-events: none; } .btn-sm { padding: 6px 13px; font-size: 12px; } .btn-full { width: 100%; } .btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-h); opacity: 1; } .btn-secondary { background: var(--surface); color: var(--primary); border: 1.5px solid var(--primary); } .btn-ghost { background: transparent; color: var(--text-sub); } .btn-ghost:hover { background: var(--border); } .btn-ghost-white { background: transparent; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.3); } .btn-ghost-white:hover { background: rgba(255,255,255,.15); opacity: 1; } .btn-danger { background: var(--danger-bg); color: var(--danger); border: 1.5px solid #ef9a9a; } /* ── Login ───────────────────────────────────────────────── */ #page-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #0d1757 0%, #1a237e 60%, #283593 100%); padding: 16px; } .login-card { background: var(--surface); border-radius: var(--radius); padding: 44px 36px; width: 100%; max-width: 380px; box-shadow: 0 24px 64px rgba(0,0,0,.35); text-align: center; } .login-logo { font-size: 44px; margin-bottom: 14px; } .login-card h1 { font-size: 22px; margin-bottom: 4px; } .subtitle { color: var(--text-sub); font-size: 13px; margin-bottom: 32px; } .field { text-align: left; margin-bottom: 16px; } .field label { display: block; font-size: 12px; font-weight: 700; color: var(--text-sub); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px; } .field input { width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; transition: border-color .2s; } .field input:focus { outline: none; border-color: var(--accent); } .error-msg { background: var(--danger-bg); color: var(--danger); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px; text-align: left; } .login-card .btn { margin-top: 6px; } /* ── Header ──────────────────────────────────────────────── */ header { background: var(--primary); color: #fff; padding: 0 20px; height: 56px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.25); } .header-left { display: flex; align-items: center; gap: 10px; } .header-icon { font-size: 20px; } .header-title { font-size: 17px; font-weight: 700; letter-spacing: -.2px; } .header-right { display: flex; align-items: center; gap: 10px; } #header-user { font-size: 13px; opacity: .75; } /* ── Main layout ─────────────────────────────────────────── */ main { max-width: 820px; margin: 0 auto; padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; } /* ── Cards ───────────────────────────────────────────────── */ .card { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); } .card h2 { font-size: 16px; font-weight: 700; margin-bottom: 18px; } .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; } .section-header h2 { margin-bottom: 0; } /* ── Drop zone ───────────────────────────────────────────── */ .drop-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 36px 20px; text-align: center; cursor: pointer; background: #fafbff; transition: border-color .2s, background .2s; } .drop-zone.drag-over { border-color: var(--accent); background: #eef0fb; } .drop-content { pointer-events: none; } .drop-icon { font-size: 32px; display: block; margin-bottom: 10px; } .drop-zone p { color: var(--text-sub); font-size: 13px; margin-bottom: 6px; } .drop-hint { font-size: 11px; margin: 4px 0 12px; } /* ── File list ───────────────────────────────────────────── */ .file-list { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; } .file-item { display: flex; align-items: center; gap: 10px; padding: 9px 13px; background: #f0f1f8; border-radius: var(--radius-sm); font-size: 13px; } .file-icon { font-size: 16px; flex-shrink: 0; } .file-name { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-remove { border: none; background: none; cursor: pointer; color: var(--text-sub); font-size: 14px; padding: 0; flex-shrink: 0; } .upload-actions { margin-top: 14px; display: flex; gap: 10px; } /* ── Progress ────────────────────────────────────────────── */ .progress-bar { height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 14px; } .progress-fill { height: 100%; background: var(--accent); border-radius: 4px; width: 0%; transition: width .4s ease; } .progress-fill.running { animation: shimmer 1.8s infinite; } @keyframes shimmer { 0% { opacity: 1; } 50% { opacity: .65; } 100% { opacity: 1; } } .progress-log { background: #f7f8fc; border-radius: var(--radius-sm); padding: 11px 14px; max-height: 200px; overflow-y: auto; font-size: 12px; font-family: 'SF Mono', 'Consolas', monospace; color: var(--text-sub); display: flex; flex-direction: column; gap: 3px; } .log-line { line-height: 1.45; } .log-line.done { color: var(--success); font-weight: 700; } .log-line.error { color: var(--danger); font-weight: 700; } /* ── Series grid ─────────────────────────────────────────── */ .series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 11px; } .series-card { background: #f7f8ff; border: 1.5px solid #c5cae9; border-radius: var(--radius-sm); padding: 15px; display: flex; flex-direction: column; gap: 7px; } .series-card h3 { font-size: 13px; font-weight: 700; color: var(--primary); line-height: 1.35; } .series-count { font-size: 11px; color: var(--text-sub); } .series-card .btn { margin-top: auto; font-size: 12px; padding: 7px 12px; } /* ── History ─────────────────────────────────────────────── */ #history-list { display: flex; flex-direction: column; gap: 9px; } .history-item { padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: background .15s; } .history-item:hover { background: #f4f5ff; } .hist-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; } .hist-title { font-size: 13px; font-weight: 700; } .hist-date { font-size: 11px; color: var(--text-sub); } .hist-files { font-size: 11px; color: var(--text-sub); } .empty-msg { color: var(--text-sub); font-size: 13px; text-align: center; padding: 18px 0; } /* ── Settings ────────────────────────────────────────────── */ .settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; } .setting-item { padding: 11px 13px; background: #f7f8fc; border-radius: var(--radius-sm); } .setting-label { font-size: 11px; font-weight: 700; color: var(--text-sub); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; } .setting-value { font-size: 12px; font-family: monospace; word-break: break-all; } .setting-value.ok { color: var(--success); } .setting-value.nok { color: var(--danger); } /* ── Responsive ──────────────────────────────────────────── */ @media (max-width: 580px) { .login-card { padding: 32px 22px; } .card { padding: 16px; } .series-grid { grid-template-columns: 1fr 1fr; } .settings-grid { grid-template-columns: 1fr; } .header-title { font-size: 14px; } } @media (max-width: 360px) { .series-grid { grid-template-columns: 1fr; } }