  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      transition: background 0.2s ease, color 0.2s, border-color 0.2s;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg-body);
      color: var(--text-primary);
      padding: 1.5rem;
    }

    /* Light / Dark Mode Variables */
    :root {
      --bg-body: #F8FAFE;
      --bg-surface: #FFFFFF;
      --border: #E4E9F2;
      --text-primary: #1A2C3E;
      --text-secondary: #215086;
      --accent: #3B82F6;
      --accent-soft: #EFF4FF;
      --accent-gold: #E4B363;
      --danger: #EF4444;
      --success: #10B981;
      --timer-bg: #F1F5F9;
      --card-shadow: 0 8px 20px rgba(0,0,0,0.02), 0 2px 6px rgba(0,0,0,0.05);
      --drag-handle: #94A3B8;
    }
    body.dark {
      --bg-body: #0F1217;
      --bg-surface: #1A1F2A;
      --border: #2D3340;
      --text-primary: #EDF2F7;
      --text-secondary: #A0AABA;
      --accent-soft: #1E293B;
      --timer-bg: #11161F;
      --card-shadow: 0 10px 25px -5px rgba(0,0,0,0.4);
      --drag-handle: #5F6C84;
    }

    .container {
      max-width: 1400px;
      margin: 0 auto;
    }

    /* header & top bar */
    .header {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 2rem;
      gap: 1rem;
    }
    .title h1 {
      font-size: 1.8rem;
      font-weight: 700;
      background: linear-gradient(135deg, var(--accent), var(--accent-gold));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .title p {
      font-size: 0.8rem;
      color: var(--text-secondary);
    }
    .theme-toggle {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: 60px;
      padding: 0.5rem 1rem;
      cursor: pointer;
      font-weight: 500;
    }

    /* 2-col layout */
    .dashboard {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 1.8rem;
    }
    @media (max-width: 860px) {
      .dashboard { grid-template-columns: 1fr; }
      body { padding: 1rem; }
    }

    /* task panel */
    .task-panel {
      background: var(--bg-surface);
      border-radius: 28px;
      border: 1px solid var(--border);
      padding: 1.5rem;
      box-shadow: var(--card-shadow);
    }
    .search-add {
      display: flex;
      gap: 0.8rem;
      flex-wrap: wrap;
      margin-bottom: 1.5rem;
    }
    .search-box {
      flex: 2;
      display: flex;
      align-items: center;
      background: var(--bg-body);
      border-radius: 60px;
      padding: 0 1rem;
      border: 1px solid var(--border);
    }
    .search-box i { color: var(--text-secondary); }
    .search-box input {
      background: transparent;
      border: none;
      padding: 0.8rem 0.5rem;
      width: 100%;
      outline: none;
      color: var(--text-primary);
    }
    .new-task-input {
      flex: 3;
      display: flex;
      gap: 0.5rem;
    }
    .new-task-input input {
      flex: 1;
      background: var(--bg-body);
      border: 1px solid var(--border);
      border-radius: 60px;
      padding: 0 1rem;
      outline: none;
      color: var(--text-primary);
    }
    button {
      background: var(--accent);
      border: none;
      border-radius: 60px;
      padding: 0 1.2rem;
      font-weight: 600;
      cursor: pointer;
      color: white;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: 0.2s;
    }
    button i { font-size: 1rem; }
    button:hover { opacity: 0.9; transform: scale(0.97); }
    .voice-btn { background: #6C5CE7; }

    /* task list with drag-drop */
    .task-list {
      margin: 1rem 0;
      max-height: 460px;
      overflow-y: auto;
    }
    .task-item {
      background: var(--bg-body);
      border-radius: 20px;
      padding: 1rem;
      margin-bottom: 0.8rem;
      border: 1px solid var(--border);
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      transition: 0.1s;
      cursor: grab;
    }
    .task-item.dragging { opacity: 0.4; cursor: grabbing; }
    .drag-handle {
      cursor: grab;
      color: var(--drag-handle);
      font-size: 1.2rem;
      user-select: none;
    }
    .task-content {
      flex: 4;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    .task-title {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .task-title input[type="checkbox"] {
      width: 20px;
      height: 20px;
      accent-color: var(--success);
      cursor: pointer;
    }
    .task-text {
      font-weight: 500;
      word-break: break-word;
    }
    .completed .task-text {
      text-decoration: line-through;
      opacity: 0.7;
    }
    .task-meta {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      font-size: 0.7rem;
      color: var(--text-secondary);
    }
    select, .note-toggle, .delete-task {
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 30px;
      padding: 0.2rem 0.6rem;
      font-size: 0.7rem;
      cursor: pointer;
      color: var(--text-primary);
    }
    .delete-task { color: var(--danger); border-color: var(--danger); }
    .note-area {
      width: 100%;
      margin-top: 8px;
      display: none;
    }
    .note-area textarea {
      width: 100%;
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 8px;
      font-size: 0.75rem;
      color: var(--text-primary);
      resize: vertical;
    }
    .analytics {
      background: var(--accent-soft);
      border-radius: 20px;
      padding: 1rem;
      margin: 1rem 0;
    }
    .progress-bar {
      height: 8px;
      background: var(--border);
      border-radius: 10px;
      overflow: hidden;
      margin: 8px 0;
    }
    .progress-fill {
      width: 0%;
      height: 100%;
      background: var(--success);
      transition: width 0.2s;
    }
    .action-buttons {
      display: flex;
      gap: 0.6rem;
      flex-wrap: wrap;
      margin-top: 1rem;
    }
    .small-btn {
      background: var(--bg-body);
      border: 1px solid var(--border);
      color: var(--text-primary);
      padding: 0.4rem 1rem;
      font-size: 0.75rem;
    }

    /* Timer Panel */
    .timer-card {
      background: var(--bg-surface);
      border-radius: 28px;
      border: 1px solid var(--border);
      padding: 1.5rem;
      text-align: center;
      box-shadow: var(--card-shadow);
      height: fit-content;
    }
    .timer-display {
      font-size: 3.5rem;
      font-weight: 800;
      font-family: monospace;
      letter-spacing: 4px;
      background: var(--timer-bg);
      padding: 0.5rem;
      border-radius: 60px;
      margin: 1rem 0;
    }
    .timer-buttons {
      display: flex;
      gap: 10px;
      justify-content: center;
      margin-bottom: 1rem;
    }
    .stats-preview {
      font-size: 0.8rem;
      margin-top: 1rem;
    }
    footer {
      text-align: center;
      margin-top: 2rem;
      font-size: 0.75rem;
      color: var(--text-secondary);
    }
    .screenshots-mock {
      background: var(--bg-surface);
      border-radius: 24px;
      padding: 1rem;
      margin-top: 2rem;
      border: 1px solid var(--border);
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      gap: 1rem;
    }
    .mock-card {
      text-align: center;
      font-size: 0.7rem;
    }
    i.fa-mobile-alt, i.fa-stopwatch { font-size: 2rem; color: var(--accent); }
    kbd {
      background: #1e293b;
      color: white;
      border-radius: 6px;
      padding: 0.2rem 0.4rem;
      font-size: 0.7rem;
    }
    .theme-toggle{
  color: rgb(232, 73, 10);
    }