* {
  box-sizing: border-box;
}
html {
  background: #09090b;
}

/* Scanline overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* Grid paper bg */
.grid-bg {
  background-color: #09090b;
  background-image:
    linear-gradient(rgba(251, 191, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Terminal cursor blink */
.cursor::after {
  content: "▋";
  animation: blink 1s step-end infinite;
  color: #fbbf24;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: #18181b;
}
::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 2px;
}

/* Task row animation */
.task-row {
  animation: slide-in 0.18s ease-out;
}

/* Amber glow on focus */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow:
    0 0 0 1px #fbbf24,
    0 0 12px rgba(251, 191, 36, 0.15);
}

/* Priority pip */
.pip-high {
  background: #ef4444;
  box-shadow: 0 0 6px #ef444488;
}
.pip-med {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b88;
}
.pip-low {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e88;
}

/* Done strikethrough */
.task-done .task-label {
  text-decoration: line-through;
  opacity: 0.4;
}

/* Code block */
.code-block {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.7;
}

/* Token colors */
.tk-key {
  color: #c084fc;
}
.tk-str {
  color: #86efac;
}
.tk-fn {
  color: #fbbf24;
}
.tk-attr {
  color: #67e8f9;
}
.tk-val {
  color: #fb923c;
}
.tk-cm {
  color: #52525b;
}

/* Tab underline active */
.tab-active {
  border-bottom: 2px solid #fbbf24;
  color: #fbbf24;
}

/* Watcher log entry */
.log-entry {
  animation: slide-in 0.15s ease-out;
}

/* Stats counter transition */
.stat-num {
  transition:
    color 0.2s ease,
    transform 0.15s ease;
}
.stat-num.pop {
  color: #fbbf24;
  transform: scale(1.3);
}

/* Progress bar */
#progress-bar {
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section header line */
.section-rule {
  border-color: rgba(251, 191, 36, 0.2);
}
