:root {
      --bg: #0f172a;
      --card: #111827;
      --muted: #9ca3af;
      --text: #e5e7eb;
      --accent: #22c55e;
      --accent-soft: rgba(34,197,94,0.15);
      --border: #1f2937;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: "Inter", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, sans-serif;
      background: linear-gradient(180deg, #020617, var(--bg));
      color: var(--text);
      line-height: 1.4;
      font-weight: 400;
    }

    .app-layout {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 16px;
      min-height: 100vh;
      max-width: 1200px;
      margin: 0 auto;
    }

    .side-column {
      padding: 30px;
      margin: 0 auto;
    } 

    header {
      padding: 24px 16px;
      text-align: center;
      border-bottom: 1px solid var(--border);
    }

    header h1 {
      margin: 0;
      font-size: 1.6rem;
      letter-spacing: 0.5px;
    }

    header p {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 0.95rem;
    }

    main {
      max-width: 900px;
      margin: 0 auto;
      padding: 16px;
      display: grid;
      gap: 16px;
    }

    fieldset {
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 16px;
      background: linear-gradient(180deg, var(--card), #020617);
    }

    fieldset:hover {
          background: var(--border);
      transition: transform 0.3s ease-in-out, background 0.1s ease;
      padding: 20px;
      background-color: rgba(34,197,94,0.15);
      border: 1px solid var(--accent);
    }

    legend {
      padding: 0 8px;
      font-weight: 600;
      color: var(--accent);
      letter-spacing: 0.3px;
    }

    .exercise {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr 0.8fr 0.6fr 1fr;
      gap: 8px;
      margin-bottom: 8px;
      font-style: italic;
    }

    .exercise.header {
      font-size: 0.75rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    label {
      font-size: 0.8rem;
      color: var(--muted);
    }

    input, textarea {
      width: 100%;
      padding: 8px 10px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: #020617;
      color: var(--text);
      font-size: 0.85rem;
    }

    textarea {
      resize: vertical;
      min-height: 36px;
    }

    input:focus, textarea:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 2px var(--accent-soft);
    }

    .notes {
      grid-column: 1 / -1;
    }

    .widget {
  background: linear-gradient(180deg, #020617, #020617);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
    }

    .widget label {
  display: block;
  margin-bottom: 6px;
  cursor: pointer;
}

    .widget-title {
      margin: 0 0 8px;
      font-size: 0.9rem;
      color: var(--accent);
    }

  #digital-clock {
  font-family: 'Orbitron', monospace; /* or any digital font */
  font-size: 2.4rem;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  background: #020617;
  box-shadow: inset 0 0 20px rgba(34,197,94,0.15);
  color: var(--accent);
}

#timer-display {
  font-size: 2rem;
  text-align: center;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #020617;
  box-shadow: inset 0 0 12px rgba(34,197,94,0.2);
}

.timer-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.timer-controls button {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #020617;
  color: var(--text);
  cursor: pointer;
}

.timer-controls button:hover {
  border-color: var(--accent);
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 0.75rem;
}

.calendar div {
  padding: 6px;
  border-radius: 6px;
  background: #020617;
}

.calendar .header {
  color: var(--muted);
  font-weight: 600;
}

.calendar .today {
  background: var(--accent);
  color: #020617;
  font-weight: bold;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-row {
  display: grid;
  grid-template-columns: auto auto 1fr 1.5fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
}

.check-row:hover {
  background: rgba(34, 197, 94, 0.06);
}

.check-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-row input:checked + .check-radio {
  background: var(--accent);
  box-shadow:
    0 0 6px rgba(34, 197, 94, 0.6),
    0 0 12px rgba(34, 197, 94, 0.25);
}

.check-row input:checked + .check-radio::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #020617;
}

.check-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}

.check-text {
  font-size: 0.9rem;
  white-space: nowrap;
}

.check-input {
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.85rem;
  color: var(--text);
}

.check-input::placeholder {
  color: var(--muted);
}

.check-row input:checked ~ .check-text {
  color: var(--accent);
}

.check-row input:checked ~ .check-input {
  border-color: var(--accent);
}

    footer {
      padding: 16px;
      text-align: center;
      color: var(--muted);
      font-size: 0.8rem;
    }

    @media (max-width: 700px) {
      .exercise {
        grid-template-columns: 1fr 1fr;
      }
      .exercise.header {
        display: none;
      }

    @media (max-width: 900px) {
      .app-layout {
        grid-template-columns: 1fr;
      }
      
    }
    }

/* ===============================
   INPUT UX + SOFT VALIDATION
================================ */

input[type="number"] {
  appearance: textfield;
}

input:invalid {
  border-color: rgba(239, 68, 68, 0.6);
}

input:focus:invalid {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

::placeholder {
  opacity: 0.6;
  font-size: 0.85rem;
}

/* ===============================
   MOBILE LAYOUT FIX
================================ */

@media (max-width: 768px) {
  .exercise {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .exercise > div:first-child {
    font-weight: 600;
    margin-bottom: 4px;
  }

  .exercise.header {
    display: none;
  }

  .exercise input,
  .exercise textarea {
    width: 100%;
    min-height: 44px;
  }
}
