*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --indigo-50: #eef2ff; --indigo-100: #e0e7ff; --indigo-200: #c7d2fe; --indigo-500: #6366f1; --indigo-600: #4f46e5; --indigo-700: #4338ca; --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb; --gray-300: #d1d5db; --gray-400: #9ca3af; --gray-500: #6b7280; --gray-600: #4b5563; --gray-700: #374151; --gray-800: #1f2937; --gray-900: #111827; --red-100: #fee2e2; --red-600: #dc2626; --amber-100: #fef3c7; --amber-600: #d97706; --green-100: #d1fae5; --green-600: #059669; --font: system-ui, -apple-system, 'Segoe UI', sans-serif; --radius: 8px; --radius-lg: 12px; --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05); --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05); --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05); --transition: 150ms ease; } html { font-size: 16px; -webkit-text-size-adjust: 100%; } body { font-family: var(--font); background: var(--gray-50); color: var(--gray-800); line-height: 1.5; min-height: 100vh; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; } .app { display: flex; flex-direction: column; min-height: 100vh; } .app-header { background: #fff; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 10; box-shadow: var(--shadow); } .header-inner { max-width: 900px; margin: 0 auto; padding: 0 1rem; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; } .brand { display: flex; align-items: center; gap: .5rem; } .brand-icon { font-size: 1.4rem; color: var(--indigo-600); line-height: 1; } .brand-name { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); letter-spacing: -.02em; } .stats { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; } .stat { display: flex; flex-direction: column; align-items: center; min-width: 44px; } .stat-label { font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); line-height: 1; } .stat-value { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); line-height: 1.2; } .stat-divider { width: 1px; height: 28px; background: var(--gray-200); } .app-main { max-width: 900px; width: 100%; margin: 0 auto; padding: 1.5rem 1rem 3rem; display: flex; flex-direction: column; gap: 1.5rem; } .create-section, .tasks-section { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.5rem; } .section-title { font-size: 1rem; font-weight: 600; color: var(--gray-700); margin-bottom: 1rem; letter-spacing: -.01em; } .create-form { display: flex; flex-direction: column; gap: .75rem; } .form-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-start; } .field { display: flex; flex-direction: column; gap: .3rem; min-width: 120px; } .field--grow { flex: 1 1 200px; } .field label { font-size: .8rem; font-weight: 500; color: var(--gray-600); line-height: 1; } .required { color: var(--indigo-600); margin-left: 1px; } input[type="text"], input[type="search"], input[type="date"], select, textarea { width: 100%; font-family: var(--font); font-size: .9rem; color: var(--gray-800); background: var(--gray-50); border: 1.5px solid var(--gray-300); border-radius: var(--radius); padding: .45rem .65rem; transition: border-color var(--transition), box-shadow var(--transition); outline: none; -webkit-appearance: none; appearance: none; } select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .55rem center; padding-right: 1.8rem; } textarea { resize: vertical; min-height: 56px; line-height: 1.5; } input:focus, select:focus, textarea:focus { border-color: var(--indigo-500); box-shadow: 0 0 0 3px rgba(99,102,241,.15); background: #fff; } input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--indigo-500); outline-offset: 2px; } .form-actions { display: flex; justify-content: flex-end; gap: .5rem; } .form-error { font-size: .8rem; color: var(--red-600); min-height: 1em; margin-top: -.25rem; } .btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font-family: var(--font); font-size: .875rem; font-weight: 600; border: none; border-radius: var(--radius); padding: .5rem 1.1rem; cursor: pointer; transition: background var(--transition), color var(--transition), box-shadow var(--transition); white-space: nowrap; text-decoration: none; outline: none; } .btn--primary { background: var(--indigo-600); color: #fff; } .btn--primary:hover { background: var(--indigo-700); box-shadow: var(--shadow-md); } .btn--primary:active { background: var(--indigo-700); transform: translateY(1px); } .btn--ghost { background: transparent; color: var(--gray-600); border: 1.5px solid var(--gray-300); } .btn--ghost:hover { background: var(--gray-100); color: var(--gray-800); } .btn--icon { padding: .35rem .5rem; background: transparent; color: var(--gray-400); border-radius: var(--radius); font-size: .85rem; border: 1.5px solid transparent; } .btn--icon:hover { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-200); } .btn--icon.delete:hover { background: var(--red-100); color: var(--red-600); border-color: var(--red-100); } .toolbar { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; } .toolbar-search { flex: 1 1 180px; } .toolbar-search input { width: 100%; padding-left: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: .65rem center; } .toolbar-filters { display: flex; gap: .5rem; flex-wrap: wrap; } .toolbar-filters select { min-width: 110px; } .task-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; } .task-item { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 1rem; background: #fff; border: 1.5px solid var(--gray-200); border-radius: var(--radius); transition: border-color var(--transition), box-shadow var(--transition); } .task-item:hover { border-color: var(--gray-300); box-shadow: var(--shadow); } .task-item.completed { background: var(--gray-50); } .task-toggle { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--indigo-600); cursor: pointer; } .task-toggle:focus-visible { outline: 2px solid var(--indigo-500); outline-offset: 2px; } .task-body { flex: 1; min-width: 0; } .task-title-text { font-size: .95rem; font-weight: 500; color: var(--gray-900); word-break: break-word; line-height: 1.4; } .completed .task-title-text { text-decoration: line-through; color: var(--gray-400); } .task-notes-text { font-size: .8rem; color: var(--gray-500); margin-top: .2rem; white-space: pre-wrap; word-break: break-word; } .task-meta { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; flex-wrap: wrap; } .badge { display: inline-block; font-size: .7rem; font-weight: 600; padding: .1rem .45rem; border-radius: 999px; letter-spacing: .03em; text-transform: capitalize; } .badge--low { background: var(--green-100); color: var(--green-600); } .badge--medium { background: var(--amber-100); color: var(--amber-600); } .badge--high { background: var(--red-100); color: var(--red-600); } .task-due-text { font-size: .72rem; color: var(--gray-400); } .task-due-text.overdue { color: var(--red-600); font-weight: 600; } .task-actions { display: flex; align-items: center; gap: .25rem; flex-shrink: 0; margin-top: 0; } .empty-state { text-align: center; padding: 3rem 1rem; color: var(--gray-400); } .empty-icon { font-size: 2.5rem; margin-bottom: .75rem; color: var(--gray-300); } .empty-title { font-size: 1rem; font-weight: 600; color: var(--gray-500); margin-bottom: .3rem; } .empty-sub { font-size: .875rem; } .modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; } .modal[hidden] { display: none; } .modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); backdrop-filter: blur(2px); } .modal-box { position: relative; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.75rem; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; } @media (max-width: 480px) { .header-inner { height: 56px; } .brand-name { font-size: 1.1rem; } .stat-label { display: none; } .stat-value { font-size: .95rem; } .app-main { padding: 1rem .75rem 2rem; gap: 1rem; } .create-section, .tasks-section { padding: 1rem; } .form-row { flex-direction: column; } .field { min-width: 0; } .toolbar { flex-direction: column; } .toolbar-filters { width: 100%; } .toolbar-filters select { flex: 1; } .task-item { padding: .7rem .75rem; gap: .5rem; } .task-actions { gap: .15rem; } .btn--icon { padding: .3rem .4rem; } .modal-box { padding: 1.25rem; } }