/* GitHub Action Timeline — Rose Quartz theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #FB7185;
  --primary-dim: rgba(251,113,133,0.12);
  --primary-glow: rgba(251,113,133,0.3);
  --secondary: #FDA4AF;
  --accent: #8B5CF6;
  --accent-dim: rgba(139,92,246,0.12);
  --bg: #1A0A10;
  --bg-card: #261218;
  --bg-input: #140810;
  --border: rgba(251,113,133,0.12);
  --text: #F5E0E8;
  --text-dim: #C09AAA;
  --text-muted: #6B3F50;
  --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(38,18,24,0.95); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.header-inner { max-width: 800px; 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: 800px; margin: 0 auto; padding: 20px; }

.input-card, .timeline-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.panel-header { 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; }
.code-editor { width: 100%; min-height: 200px; padding: 12px 14px; font-family: var(--mono); font-size: 0.75rem; line-height: 1.6; color: var(--secondary); background: var(--bg-input); border: none; outline: none; resize: vertical; }

.input-actions { padding: 10px 14px; display: flex; justify-content: flex-end; }
.btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 18px; font-family: var(--font); font-size: 0.82rem; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; transition: all var(--transition); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #E11D48); color: #fff; }
.btn-primary:hover { box-shadow: 0 4px 16px var(--primary-glow); transform: translateY(-1px); }

.gantt { padding: 16px; overflow-x: auto; }
.gantt-row { display: flex; align-items: center; margin-bottom: 6px; }
.gantt-label { width: 100px; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--primary); flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-track { flex: 1; height: 28px; position: relative; background: rgba(251,113,133,0.04); border-radius: 4px; }
.gantt-bar { position: absolute; top: 3px; height: 22px; border-radius: 4px; display: flex; align-items: center; padding: 0 6px; font-size: 0.62rem; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all 0.3s ease; }
.gantt-bar:hover { filter: brightness(1.2); }
.gantt-bar.critical { box-shadow: 0 0 8px var(--primary-glow); }
.gantt-deps { font-size: 0.58rem; color: var(--text-muted); margin-left: 4px; }
.gantt-scale { display: flex; justify-content: space-between; padding: 4px 0 8px 100px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.gantt-scale span { font-size: 0.6rem; color: var(--text-muted); font-family: var(--mono); }

.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column-reverse; gap: 8px; }
.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); } }
