/* Cron Visualizer — Orange Dark */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #F97316;
  --primary-dim: rgba(249,115,22,0.12);
  --secondary: #FB923C;
  --accent: #FED7AA;
  --bg: #18181B;
  --bg-card: #1E1E22;
  --border: rgba(249,115,22,0.10);
  --text: #E4E4E7;
  --text-dim: #A1A1AA;
  --text-muted: #52525B;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --transition: 0.2s ease;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }

.header { border-bottom: 1px solid var(--border); background: rgba(30,30,34,0.95); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.header-inner { max-width: 700px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; }
.header-left { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.2rem; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--primary-dim); border-radius: var(--radius-sm); }
.header h1 { font-size: 1.05rem; font-weight: 700; }
.subtitle { font-size: 0.72rem; color: var(--text-dim); }

.main { max-width: 700px; margin: 0 auto; padding: 20px; }

.input-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 8px; }
.cron-row { display: flex; }
.cron-input { width: 100%; padding: 10px 14px; font-family: var(--mono); font-size: 1.1rem; color: var(--primary); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; outline: none; text-align: center; letter-spacing: 0.1em; }
.cron-fields { display: flex; justify-content: center; gap: 20px; margin-top: 4px; }
.field-label { font-size: 0.52rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.description { margin-top: 8px; font-size: 0.72rem; color: var(--text-dim); text-align: center; }

.presets-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.presets-grid { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 14px; }
.preset { padding: 4px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; transition: all var(--transition); font-size: 0.62rem; font-weight: 600; color: var(--text-dim); }
.preset:hover { border-color: var(--primary); color: var(--primary); }

.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.panel-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fire-count { font-size: 0.62rem; color: var(--primary); font-weight: 600; }

.view-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.tab { flex: 1; padding: 6px; font-family: var(--font); font-size: 0.72rem; font-weight: 600; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; text-align: center; transition: all var(--transition); }
.tab.active { color: var(--primary); background: var(--primary-dim); border-color: rgba(249,115,22,0.2); }

.timeline-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.timeline { padding: 10px 14px; }
.tl-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.tl-label { font-size: 0.52rem; color: var(--text-muted); min-width: 60px; text-align: right; font-family: var(--mono); }
.tl-bar { flex: 1; height: 12px; background: rgba(249,115,22,0.05); border-radius: 3px; position: relative; overflow: hidden; }
.tl-dot { position: absolute; width: 3px; height: 100%; background: var(--primary); border-radius: 1px; }

.next-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.next-list { padding: 8px 14px; }
.next-item { display: flex; justify-content: space-between; padding: 3px 0; font-size: 0.68rem; }
.next-date { color: var(--text-dim); }
.next-rel { color: var(--primary); font-weight: 600; }

.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 200; }
.toast { padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 4px 24px rgba(0,0,0,0.5); font-size: 0.82rem; animation: toastIn 0.3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
