:root {
    --bg-color: #0F172A; /* Deep Navy Background */
    --card-bg: #1E293B; /* Slate Card Background */
    --accent-color: #3B82F6; /* Bright Blue Accent */
    --success-color: #10B981; /* Vibrant Green Success */
    --text-main: #F8FAFC; /* Slate-50 Main Text */
    --text-secondary: #94A3B8; /* Slate-400 Secondary Text */
    --border-color: #334155; /* Slate-700 Border */
    --tab-bg: rgba(15, 23, 42, 0.8); /* Translucent Navy for Nav */
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container for all pages */
#app {
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(85px + var(--safe-bottom)); /* Nav height + padding */
    transition: opacity 0.3s ease;
}

.page {
    display: none;
    padding: 20px;
    animation: fadeIn 0.4s ease-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* iOS Typography */
h1 {
    font-size: 24px; /* Reduced from 32px as requested */
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

/* --- GLOBAL STREAK INDICATOR --- */
.global-streak-container {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 159, 10, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 159, 10, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    z-index: 100;
}

.global-streak-container.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.global-streak-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(255, 159, 10, 0.5));
}

.global-streak-count {
    font-size: 16px;
    font-weight: 800;
    color: #FF9F0A;
}

/* Streak Levels & Effects */
/* 4–7 hari → scale 1.2 + glow ringan */
.streak-level-1 {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 159, 10, 0.3);
}

/* 8–14 hari → scale 1.3 + animasi pulse */
.streak-level-2 {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 159, 10, 0.5);
    animation: streak-pulse 2s infinite ease-in-out;
}

/* 15+ hari → scale 1.5 + efek api menyala */
.streak-level-3 {
    transform: scale(1.5);
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.3), rgba(255, 159, 10, 0.3));
    border-color: rgba(255, 159, 10, 0.6);
    box-shadow: 0 0 25px rgba(255, 159, 10, 0.8);
    animation: streak-fire 1.2s infinite alternate ease-in-out;
}

@keyframes streak-pulse {
    0% { transform: scale(1.3); box-shadow: 0 0 15px rgba(255, 159, 10, 0.5); }
    50% { transform: scale(1.35); box-shadow: 0 0 25px rgba(255, 159, 10, 0.7); }
    100% { transform: scale(1.3); box-shadow: 0 0 15px rgba(255, 159, 10, 0.5); }
}

@keyframes streak-fire {
    0% { transform: scale(1.5) rotate(-2deg); box-shadow: 0 0 25px rgba(255, 69, 58, 0.6); }
    100% { transform: scale(1.55) rotate(2deg); box-shadow: 0 0 35px rgba(255, 159, 10, 0.9); }
}

.streak-update-anim {
    animation: streak-bump 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes streak-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.6); filter: brightness(1.5) contrast(1.2); }
    100% { transform: scale(1); }
}

/* Achievement Popup */
.achievement-popup {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 20px;
    border: 2px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.achievement-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.achievement-popup .badge-icon {
    font-size: 60px;
}

.achievement-popup .badge-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-color);
}

.achievement-popup .badge-desc {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.subtext {
    color: var(--text-secondary);
    font-size: 14px;
}

/* --- BOTTOM NAVIGATION --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(70px + var(--safe-bottom));
    background: var(--tab-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: var(--safe-bottom);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 10px;
    padding: 5px 0;
    transition: color 0.2s;
    cursor: pointer;
    flex: 1;
}

.nav-item.active {
    color: var(--accent-color);
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

/* --- ADD HABIT PAGE --- */
.form-group {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
}

.form-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.5px solid var(--border-color);
}

.form-item:last-child { border-bottom: none; }

.form-label { font-size: 17px; }

.form-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 17px;
    text-align: right;
    width: 60%;
    outline: none;
}

.form-input::placeholder { color: var(--text-secondary); }

.color-picker {
    display: flex;
    gap: 8px;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-dot.active { border-color: white; }

.day-picker {
    display: flex;
    gap: 5px;
    padding: 10px 16px;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 20px;
    justify-content: space-between;
}

.day-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.day-btn.active {
    background: var(--accent-color);
    color: white;
}

.preview-container {
    margin-bottom: 25px;
}

.preview-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
    margin-left: 5px;
}

.btn-save {
    background: var(--accent-color);
    color: white;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-size: 17px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}

.btn-delete-habit {
    background: #FF453A;
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    margin-top: 20px;
    cursor: pointer;
    opacity: 0.8;
}

/* List Items (iOS Style) */
.list-group {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
}

.list-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.5px solid var(--border-color);
    cursor: pointer;
}

.list-item:last-child { border-bottom: none; }
.list-item:active { background: rgba(255,255,255,0.05); }

.list-label { font-size: 17px; }
.list-value { color: var(--text-secondary); font-size: 17px; }
.list-chevron { color: var(--text-secondary); margin-left: 8px; font-size: 14px; }

.list-header {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
    margin-left: 16px;
}

/* Habit Item UI Enhancement */
.habit-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    background: var(--border-color); /* Darker background */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
     filter: grayscale(1) contrast(1.2); /* Make emoji look more black/white and sharper */
 }

.habit-card.completed .habit-icon {
    filter: grayscale(0); /* Return color when completed */
    opacity: 0.7;
}

.habit-content-main {
    display: flex;
    align-items: center;
    flex: 1;
}

.habit-meta {
    display: flex;
    flex-direction: column;
}

.habit-progress-text {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 2px;
}

.bad-habit .habit-check {
    border-color: #FF453A;
}

.bad-habit.completed .habit-check {
    background: #FF453A;
    border-color: #FF453A;
}

/* Header Navigation */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-back {
    color: var(--accent-color);
    font-size: 17px;
    cursor: pointer;
    background: none;
    border: none;
}

/* --- HABITS PAGE --- */
.date-selector {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scrollbar-width: none;
}

.date-selector::-webkit-scrollbar {
    display: none;
}

.date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    padding: 12px 8px;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}

.date-item.is-today {
    background: rgba(59, 130, 246, 0.1); /* Subtle accent background for today */
    border: 1px solid var(--accent-color);
}

.date-item.active {
    background: var(--accent-color) !important; /* Ensure active wins background */
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.date-item.is-today::before {
    content: '';
    position: absolute;
    top: 6px;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: 3;
}

.date-item.active.is-today::before {
    background: white; /* Dot white on active today */
}

.date-item.is-today .date-num {
    color: var(--accent-color); /* Highlight today's number */
}

.date-item.active .date-num {
    color: white !important; /* Reset to white if active */
}

/* Streak Line for Date Selector */
.date-item.streak-day {
    border: 2px solid var(--success-color);
}

.date-item .streak-line {
    position: absolute;
    top: 50%;
    height: 4px;
    background: linear-gradient(90deg, var(--success-color), #059669);
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    border-radius: 2px;
    opacity: 0;
    transition: width 0.3s ease-in-out, opacity 0.3s ease;
}

.date-item .streak-line.left {
    left: -14px; /* Match gap between items */
    width: 14px;
}

.date-item .streak-line.right {
    right: -14px;
    width: 14px;
}

.date-item.show-left .streak-line.left,
.date-item.show-right .streak-line.right {
    opacity: 1;
}

/* Per-Habit Streak 🔥 */
.habit-streak-badge {
    position: absolute;
    top: 12px;
    right: 50px; /* Near check button */
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #FF9F0A; /* iOS Orange */
    background: rgba(255, 159, 10, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.habit-streak-badge.bounce {
    transform: scale(1.3);
}

.habit-streak-badge.hidden {
    display: none;
}

.habit-streak-icon {
    filter: drop-shadow(0 0 2px rgba(255, 159, 10, 0.5));
    animation: flicker 2s infinite alternate;
}

@keyframes flicker {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.date-day { 
    font-size: 10px; 
    text-transform: uppercase; 
    margin-bottom: 6px; 
    z-index: 2; 
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.8;
}
.date-num { font-size: 16px; font-weight: 600; z-index: 2; }

.habits-list {
    position: relative;
    min-height: 100px;
}

.habit-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s ease, color 0.4s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.habit-card:active {
    transform: scale(0.98);
}

.habit-card.completed {
    background: var(--success-color);
    border-color: var(--success-color);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.habit-card.completed .habit-name {
    color: white; /* In the image, completed card text is white */
    text-decoration: none; /* Let's remove line-through to match image */
}

.habit-card.completed .subtext,
.habit-card.completed .habit-progress-text {
    color: rgba(255, 255, 255, 0.8);
}

.habit-card.completed .habit-icon {
    background: rgba(255, 255, 255, 0.2);
    filter: grayscale(0) brightness(1.5);
}

.habit-card.completed .habit-check {
    background: rgba(255, 255, 255, 0.3);
    border-color: transparent;
    color: white;
}

.habit-card.bad-habit.completed {
    background: #FF453A;
    border-color: #FF453A;
    box-shadow: 0 4px 15px rgba(255, 69, 58, 0.3);
}

.habit-card.bad-habit.completed .habit-check {
    background: rgba(255, 255, 255, 0.3);
}

.habit-card.moving {
    z-index: 10;
}

.confetti-particle {
    position: fixed;
    border-radius: 2px; /* Square like real confetti */
    pointer-events: none;
    z-index: 9999;
    will-change: transform, opacity;
}

.habit-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: transparent;
}

.floating-btn {
    position: fixed;
    right: 20px;
    bottom: calc(90px + var(--safe-bottom));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    z-index: 99;
}

/* --- STATISTICS PAGE --- */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.insight-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 12px;
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.insight-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.weekly-comp {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comp-value {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comp-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.indicator-up { color: var(--success-color); }
.indicator-down { color: #FF453A; }

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

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 0.5px solid var(--border-color);
    background: transparent;
    transition: background 0.2s;
}

.ranking-item:active {
    background: rgba(255, 255, 255, 0.05);
}

.ranking-number {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-secondary);
    min-width: 20px;
    text-align: center;
}

.ranking-item:nth-child(1) .ranking-number { color: #FFD700; font-size: 18px; } /* Gold */
.ranking-item:nth-child(2) .ranking-number { color: #C0C0C0; font-size: 16px; } /* Silver */
.ranking-item:nth-child(3) .ranking-number { color: #CD7F32; font-size: 15px; } /* Bronze */

.ranking-icon {
    font-size: 20px;
}

.ranking-name {
    font-weight: 600;
    font-size: 16px;
}

.ranking-points {
    font-weight: 800;
    color: var(--accent-color);
    font-size: 14px;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.calendar-placeholder {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.cal-day { font-size: 12px; color: var(--text-secondary); margin-bottom: 5px; }
.cal-date { 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 14px;
    border-radius: 8px;
    background: var(--border-color); /* Use border-color for empty days */
    position: relative;
    overflow: visible; /* Changed from hidden to allow lines to connect */
}

/* Streak Line for Calendar */
.cal-date.streak-day.show-right::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px; /* Match the gap of calendar-grid */
    width: 8px;
    height: 4px;
    background-color: var(--success-color);
    transform: translateY(-50%);
    z-index: 1;
}

.cal-date.has-activity {
    color: white;
    font-weight: 600;
}

.cal-date.filled { background: var(--success-color); color: white; }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin: 8px 0 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- SETTINGS PAGE --- */
.settings-group {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.settings-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.5px solid var(--border-color);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-label {
    font-size: 17px;
}

/* iOS Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 27px; width: 27px;
    left: 2px; bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

input:checked + .slider { background-color: var(--success-color); }
input:checked + .slider:before { transform: translateX(20px); }

/* Achievements */
.achievements-group {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: space-around;
}

.achievement-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.3;
    filter: grayscale(1);
    transition: all 0.5s ease;
}

.achievement-badge.unlocked {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

.badge-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.badge-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.unlocked .badge-label {
    color: var(--accent-color);
}

/* Icon Picker Grid */
.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    background: var(--card-bg);
    padding: 12px;
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
}

.icon-option {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--border-color);
     box-shadow: 0 2px 4px rgba(0,0,0,0.1);
     filter: grayscale(1) contrast(1.2); /* Black/White effect and sharper */
 }

.icon-option:active {
    transform: scale(0.9);
}

.icon-option.active {
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(10, 132, 255, 0.4);
    filter: grayscale(0); /* Highlighted icon has color */
}

.preview-container {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.preview-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-left: 4px;
}

.form-group {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
}

.form-item {
    padding: 12px 16px;
    border-bottom: 0.5px solid var(--border-color);
}

.form-item:last-child {
    border-bottom: none;
}

.form-label {
    font-size: 14px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 17px;
    padding: 4px 0;
    outline: none;
}

.color-picker {
    display: flex;
    gap: 15px;
    padding: 8px 0;
}

.color-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-dot.active {
    transform: scale(1.2);
    border: 3px solid white;
}

.day-picker {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.day-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.day-btn.active {
    background: var(--accent-color);
    color: white;
}

.btn-save {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}

.btn-delete-habit {
    width: 100%;
    background: transparent;
    color: #FF453A;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}

.confetti-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}