* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #4ade80;
    --accent-dim: #22c55e;
    --border: #333;
    --danger: #ef4444;
    --warning: #f59e0b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Progress Bar */
.progress-bar {
    background: var(--bg-tertiary);
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 999px;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

#checkedCount {
    color: var(--accent);
    font-weight: 600;
}

/* Category Sections */
.category {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.category h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

/* Checklist Items */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.check-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.check-item:hover {
    background: #2a2a2a;
}

.check-item.checked {
    opacity: 0.6;
}

.check-item.checked label {
    text-decoration: line-through;
    text-decoration-color: var(--text-secondary);
}

/* Checkbox Styling */
.check-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--bg-primary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.check-item input[type="checkbox"]:hover {
    border-color: var(--accent);
}

.check-item input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.check-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: bold;
}

/* Labels */
.check-item label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item-title {
    font-weight: 500;
    color: var(--text-primary);
}

.item-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Links */
.check-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
    align-self: center;
}

.check-link:hover {
    background: rgba(74, 222, 128, 0.2);
    color: #6ee7a0;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

footer p {
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.reset-btn {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    background: var(--danger);
    color: white;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .check-item {
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
    }

    .check-link {
        grid-column: 2;
        justify-self: start;
        margin-top: 0.5rem;
    }

    .category {
        padding: 1rem;
    }
}
