* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #f0f2f5; color: #1a2332; }
.nav { background: white; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; }
.nav a { text-decoration: none; color: #1a2332; font-weight: 500; margin-left: 1rem; }
.nav a:hover { color: #4f8cf7; }
.brand { font-weight: 700; font-size: 1.3rem; }

.container { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }
h1 { margin-bottom: 0.5rem; }
p { color: #4a5568; margin-bottom: 1.5rem; }

/* ----- HERO / MASCOT ----- */
.hero { text-align: center; margin-bottom: 2rem; }
.mascot-big { font-size: 4rem; display: block; animation: float 2s ease-in-out infinite; }
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}
.subtitle { color: #4a5568; font-size: 1rem; }

/* ----- COLOR GRID (Original) ----- */
.color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.color-square { aspect-ratio: 1; border-radius: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; border: 3px solid transparent; transition: transform 0.2s, border 0.2s; }
.color-square:hover { transform: scale(1.05); border-color: #1a2332; }
.color-label { color: white; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.3); font-size: 1.2rem; text-align: center; }

/* ----- COLOR GRID (Compact / Small) ----- */
.color-grid.compact { gap: 0.6rem; }
.color-square.small { aspect-ratio: 1/1; max-width: 80px; border-radius: 12px; font-size: 0.7rem; }
.color-square.small .color-label { font-size: 0.7rem; padding: 0.2rem; }

/* ----- TIMER SECTION ----- */
.timer-section { background: white; border-radius: 16px; padding: 2rem; box-shadow: 0 4px 12px rgba(0,0,0,0.06); margin-top: 1rem; }

/* Timer Header: Mascot + Activity */
.timer-header { display: flex; align-items: center; justify-content: center; gap: 0.8rem; font-size: 1.5rem; margin-bottom: 0.5rem; }
.mascot-timer { font-size: 2.8rem; animation: bounce 1s infinite alternate; }
@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}
.activity-name { font-weight: 700; color: #1a2332; }

/* Timer Display - Big Numbers */
.timer-display { font-size: 5rem; font-weight: 700; color: #1a2332; text-align: center; padding: 0.5rem 0; font-family: 'Courier New', monospace; letter-spacing: 2px; }

/* Progress Bar - Thick & Colorful */
.timer-progress { height: 16px; background: #e2e8f0; border-radius: 8px; overflow: hidden; margin: 1rem 0; }
.timer-progress-fill { height: 100%; background: linear-gradient(90deg, #f6d365, #fda085); transition: width 0.3s; border-radius: 8px; }

/* Stop Button - Big & Rounded */
.stop-btn { background: #e53e3e; color: white; border: none; padding: 0.8rem 2.5rem; border-radius: 50px; font-size: 1.2rem; font-weight: 700; cursor: pointer; transition: transform 0.2s, background 0.2s; margin-top: 0.5rem; display: block; width: 100%; max-width: 200px; margin-left: auto; margin-right: auto; }
.stop-btn:hover { background: #c53030; transform: scale(1.05); }

/* ----- Confetti (optional) ----- */
.confetti-canvas { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; }

/* ----- DASHBOARD / SUMMARY ----- */
.summary-grid { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0 2rem 0; }
.summary-item { display: flex; align-items: center; gap: 1rem; background: white; padding: 0.5rem 1rem; border-radius: 8px; }
.summary-color { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; }
.summary-details { flex: 1; }
.summary-activity { font-weight: 500; margin-right: 0.5rem; }
.summary-time { color: #4a5568; margin-right: 1rem; }
.summary-bar { background: #e2e8f0; height: 6px; border-radius: 3px; overflow: hidden; flex: 1; }
.summary-bar-fill { height: 100%; border-radius: 3px; }

/* ----- DAILY LOGS ----- */
.day-section { margin-bottom: 2rem; }
.day-section h3 { background: white; padding: 0.5rem 1rem; border-radius: 8px; border-bottom: 2px solid #e2e8f0; }
.day-logs { margin-top: 0.5rem; }
.log-entry { display: flex; align-items: center; gap: 0.8rem; padding: 0.3rem 1rem; background: white; border-radius: 6px; margin-bottom: 0.2rem; }
.log-time { font-size: 0.8rem; color: #4a5568; width: 80px; }
.log-color { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.log-activity { flex: 1; font-weight: 500; }
.log-duration { font-size: 0.9rem; color: #4a5568; margin-right: 0.5rem; }
.log-bar { height: 6px; border-radius: 3px; flex-shrink: 0; }
.empty-day { color: #a0aec0; padding: 0.5rem 1rem; }

/* ----- SETTINGS ----- */
.settings-form { background: white; padding: 2rem; border-radius: 16px; }
.setting-row { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid #e2e8f0; }
.color-preview { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.setting-row label { font-weight: 500; min-width: 60px; }
.setting-row input { flex: 1; padding: 0.3rem 0.6rem; border: 1px solid #e2e8f0; border-radius: 6px; }
.save-btn { background: #4f8cf7; color: white; border: none; padding: 0.8rem 2rem; border-radius: 12px; font-size: 1rem; cursor: pointer; margin-top: 1rem; }
.save-btn:hover { background: #3b7bdd; }

/* ----- RESPONSIVE ----- */
@media (max-width: 600px) {
    .color-grid { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
    .color-label { font-size: 0.8rem; }
    .timer-display { font-size: 3rem; }
    .timer-section { padding: 1.5rem; }
    .color-square.small { max-width: 60px; }
    .color-square.small .color-label { font-size: 0.6rem; }
    .stop-btn { font-size: 1rem; padding: 0.6rem 1.5rem; max-width: 160px; }
}