:root {
    --primary-color: #6C5CE7;
    --secondary-color: #A29BFE;
    --background-color: #DFE6E9;
    --card-bg: #ffffff;
    --text-color: #2D3436;
    --accent-color: #00B894;
    --header-gradient: linear-gradient(135deg, #6C5CE7, #A29BFE);
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    --font-main: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    background: var(--card-bg);
    width: 100%;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

header {
    background: var(--header-gradient);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

header p {
    margin-top: 10px;
    opacity: 0.9;
    font-size: 1rem;
}

main {
    padding: 20px;
}

.checklist-section {
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.2s;
}

.checklist-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

h2 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
    display: inline-block;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    margin-bottom: 12px;
}

/* Custom Checkbox Styling */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    position: relative;
    padding-left: 35px;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #eee;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.custom-checkbox:hover .checkmark {
    background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.text {
    line-height: 1.4;
    transition: color 0.3s;
}

.custom-checkbox input:checked ~ .text {
    color: #b2bec3; /* Muted text when checked */
    text-decoration: line-through;
}

/* Footer & Progress */
footer {
    padding: 20px;
    background: #f1f2f6;
    text-align: center;
    border-top: 1px solid #dfe6e9;
}

.progress-container {
    width: 100%;
    background-color: #dfe6e9;
    border-radius: 10px;
    height: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

#progressText {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

#resetBtn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

#resetBtn:hover {
    background: #5649c0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    header { padding: 20px; }
    header h1 { font-size: 1.5rem; }
    .container { border-radius: 0; width: 100%; height: 100%; }
    body { padding: 0; }
}
