/* Biến nội bộ Neo-Brutalism */
.timer-neo-wrapper {
    --border-ink: 4px solid #111111;
    --shadow-solid: 6px 6px 0px #111111;
    --bg-main: #f8f9fa;
    --clr-green: #8ac926;
    --clr-yellow: #ffca3a;
    --clr-red: #ff595e;
    --clr-blue: #1982c4;
    --clr-purple: #6a4c93;

    max-width: 600px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, sans-serif;
    color: #111111;
    background: var(--bg-main);
    padding: 25px;
    border: var(--border-ink);
    border-radius: 16px;
    box-shadow: 10px 10px 0px #111;
}

.timer-neo-wrapper * { box-sizing: border-box; }

.timer-neo-header { background: var(--clr-purple); color: #fff; border: var(--border-ink); box-shadow: var(--shadow-solid); padding: 20px; border-radius: 12px; text-align: center; margin-bottom: 20px; }
.timer-neo-header h2 { margin: 0 0 10px 0; font-size: 1.8rem; font-weight: 900; text-transform: uppercase;}
.timer-neo-header p { margin: 0; font-weight: 800; font-size: 0.95rem; }

/* Banner Thông báo */
.notify-banner { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 3px dashed #111; border-radius: 12px; padding: 12px 15px; margin-bottom: 20px; font-weight: 800; font-size: 0.95rem; gap: 10px;}
.neo-btn-small { padding: 8px 12px; background: #111; color: #fff; border: 2px solid #111; border-radius: 6px; font-weight: 900; cursor: pointer; box-shadow: 3px 3px 0px var(--clr-yellow); transition: all 0.1s; white-space: nowrap;}
.neo-btn-small:active { box-shadow: 1px 1px 0px var(--clr-yellow); transform: translate(2px, 2px); }

/* Tabs */
.timer-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tab-btn { flex: 1; padding: 12px; font-size: 1.1rem; font-weight: 900; background: #e9ecef; border: 3px solid #111; border-radius: 12px; cursor: pointer; box-shadow: 4px 4px 0px #111; transition: all 0.1s;}
.tab-btn.active { background: var(--clr-yellow); box-shadow: 2px 2px 0px #111; transform: translate(2px, 2px); }

/* Hộp chính */
.timer-main-box { background: #fff; border: var(--border-ink); border-radius: 16px; padding: 30px 20px; text-align: center; box-shadow: var(--shadow-solid);}

/* Cài đặt Đếm ngược */
.countdown-setup { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 25px; }
.time-input-group { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.time-input-group input { width: 70px; height: 70px; font-size: 2rem; font-weight: 900; text-align: center; border: 3px solid #111; border-radius: 12px; background: #f8f9fa; outline: none; }
.time-input-group input:focus { background: #e0fbfc; }
.time-input-group span { font-size: 0.9rem; font-weight: 800; text-transform: uppercase; }
.colon { font-size: 2.5rem; font-weight: 900; margin-top: -20px; }

/* Màn hình Đồng hồ */
.timer-display { margin-bottom: 30px; }
#display-time { font-size: 4.5rem; font-weight: 900; font-family: 'Courier New', Courier, monospace; letter-spacing: -2px; color: #111;}
.ms-text { font-size: 2rem; font-weight: 900; color: #555; }

/* Nút điều khiển */
.timer-controls { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.ctrl-btn { padding: 15px 25px; font-size: 1.2rem; font-weight: 900; border: 3px solid #111; border-radius: 12px; cursor: pointer; text-transform: uppercase; box-shadow: 5px 5px 0px #111; transition: all 0.1s; flex: 1; min-width: 120px;}
.ctrl-btn:active { box-shadow: 2px 2px 0px #111; transform: translate(3px, 3px); }
.btn-green { background: var(--clr-green); color: #111; }
.btn-yellow { background: var(--clr-yellow); color: #111; }
.btn-red { background: var(--clr-red); color: #fff; }
.btn-blue { background: var(--clr-blue); color: #fff; }

/* Laps */
.lap-container { margin-top: 25px; background: #fff; border: 3px dashed #111; border-radius: 12px; padding: 15px; text-align: left;}
.lap-container h4 { margin: 0 0 10px 0; font-weight: 900; text-transform: uppercase;}
#lap-list { list-style: none; padding: 0; margin: 0; max-height: 200px; overflow-y: auto;}
#lap-list li { display: flex; justify-content: space-between; padding: 8px 10px; border-bottom: 2px solid #eee; font-weight: 800; font-family: monospace; font-size: 1.1rem;}
#lap-list li:nth-child(odd) { background: #f8f9fa; }

@media (max-width: 500px) {
    #display-time { font-size: 3rem; }
    .time-input-group input { width: 60px; height: 60px; font-size: 1.5rem; }
    .timer-controls { flex-direction: column; }
}