:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --accent: #6366f1;
    --success: #22c55e;
}

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

body {
    font-family: 'Kanit', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
    align-items: flex-start;
}

.dashboard-wrapper { width: 100%; max-width: 1000px; margin-top: 10px; }

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Header Bar */
.app-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    margin-bottom: 25px;
}
.app-brand { display: flex; align-items: center; gap: 15px; }
.app-logo-icon { width: 45px; height: 45px; color: var(--accent); filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5)); }
.app-title { font-size: 1.6rem; font-weight: 600; background: linear-gradient(to right, #fff, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.app-author { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
.app-status { text-align: right; }
#greetingText { font-size: 1.1rem; font-weight: 300; opacity: 0.8; display: block; margin-bottom: -5px; }
#digitalClock { font-size: 1.8rem; font-weight: 600; }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Timer Widget */
.timer-display { font-size: 4.5rem; text-align: center; margin: 15px 0; }
.button-group { display: flex; gap: 10px; justify-content: center; }
.status-text { margin-top: 20px; text-align: center; display: block; width: 100%; font-size: 1rem; color: #cbd5e1; }
.btn { padding: 12px 30px; border-radius: 12px; border: none; cursor: pointer; font-weight: 600; transition: 0.2s; }
.btn-primary { background: var(--accent); color: white; }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; }

/* To-Do Widget & Stats */
.stats {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 10px;
    display: inline-block;
}
#completeCount { color: var(--success); font-weight: 600; }
#totalCount { font-weight: 600; }

.input-area { display: flex; gap: 10px; margin-bottom: 15px; }
#taskInput { flex: 1; background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); border-radius: 10px; padding: 12px; color: white; outline: none; }
.btn-add { background: var(--accent); color: white; border: none; width: 45px; border-radius: 10px; cursor: pointer; font-size: 1.5rem; }

ul { list-style: none; max-height: 400px; overflow-y: auto; padding-right: 5px; }
li { background: rgba(255,255,255,0.05); margin-bottom: 10px; padding: 15px; border-radius: 15px; display: flex; justify-content: space-between; }
.task-content { display: flex; gap: 12px; cursor: pointer; flex: 1; }
.timestamps { display: flex; flex-direction: column; font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 5px; }
.finish-time { color: var(--success); font-weight: 600; }
.done { opacity: 0.5; }
.done .task-text { text-decoration: line-through; }
.delete-btn { background: none; border: none; cursor: pointer; font-size: 1.2rem; opacity: 0.4; }

.quote-section { text-align: center; font-style: italic; color: #94a3b8; }
.custom-scrollbar::-webkit-scrollbar { width: 5px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }

@media (max-width: 600px) {
    .app-header-bar { flex-direction: column; text-align: center; gap: 15px; }
    .app-status { text-align: center; }
}