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

:root {
    --bg: #2c1a10;
    --bg2: #2c1a10;
    --text: #ffffff;
    --text-strong: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-faint: rgba(255, 255, 255, 0.4);
    --border: rgba(255, 255, 255, 0.22);
    --border-mid: rgba(255, 255, 255, 0.12);
    --accent: #c68b59;
    --accent-dark: #e8a870;
    --accent-lite: #e8c9a0;
    --surface: rgba(255, 255, 255, 0.05);
    --dot-empty: rgba(255, 255, 255, 0.18);
}

body {
    font-family: 'helvetica neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    transition: background 0.4s ease, color 0.4s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/bg.png');
    background-size: 80%;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
}

.logo {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--text-strong);
    transition: color 0.4s ease;
}

header {
    display: flex;
    align-items: center;
    padding: 0 28px;
    border-bottom: 1.5px solid var(--border);
    height: 52px;
    background: var(--bg2);
    justify-content: space-between;
    flex-shrink: 0;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.mode-btns {
    display: flex;
    gap: 6px;
}
.mode-btn {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-family: 'helvetica neue', sans-serif;
    font-size: 13px;
    transition: background 0.2s, color 0.2s, border-color 0.4s;
}
.mode-btn:hover {
    background: var(--surface);
}
.mode-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.main {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow-y: auto;
    position: relative;
}

/*timer*/
.timer-overlay {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -45%);
    text-align: center;
    z-index: 5;
    pointer-events: none;
}

.timer-time {
    font-size: 56px;
    font-weight: 310;
    letter-spacing: -3px;
    color: var(--text-strong);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: color 0.4s ease;
}

.timer-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 4px;
    transition: color 0.4s ease;
}

.timer-session {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
    transition: color 0.4s ease;
}

.controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 42px;
}

.btn-main {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    font-family: 'helvetica neue', sans-serif;
    transition: background 0.2s, transform 0.1s;
}

.btn-main:hover {
    background: var(--accent-dark);
}

.btn-main:active {
    transform: scale(0.94);
}

.btn-sec {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: rgba(107, 62, 38, 0.07);
    color: var(--accent);
    font-size: 15px;
    cursor: pointer;
    font-family: 'helvetica neue', sans-serif;
    transition: background 0.2s, color 0.4s, border-color 0.4s;
}

.btn-sec:hover {
    background: rgba(107, 62, 38, 0.16);
}

.btn-sec:active {
    transform: scale(0.94);
}

.session-dots {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 260px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot-empty);
    transition: background 0.3s ease, transform 0.2s ease;
}
.dot.done {
    background: var(--accent);
}
.dot.current {
    background: var(--accent-lite);
    transform: scale(1.25);
}

/*sidebar*/
.sidebar {
    width: 310px;
    border-left: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg2);
    opacity: 0.9;
    flex-shrink: 0;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.sidebar-section {
    padding: 18px 20px;
    flex: 1;
    overflow-y: auto;
}

.section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
}

/*tasks*/
.task-row {
    display:flex;
    gap: 7px;
    margin-bottom: 10px;
} 

.task-input {
    flex: 1;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: rgba(107, 62, 38, 0.06);
    font-size: 13px;
    color: var(--text);
    font-family: 'helvetica neue', sans-serif;
    outline: none;
}
.task-input::placeholder {
    color: var(--text-faint);
}
.task-input:focus {
    border-color: var(--accent);
}

.task-add {
    width: 33px;
    height: 33px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 19px;
    cursor: pointer;
    font-family: 'helvetica neue', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.task-add:hover { background: var(--accent-dark); }

.task-item.done .task-check {
    background: var(--accent);
    border-color: var(--accent);
}

.task-text { font-size: 14px; flex: 1; color: var(--text); }
.task-item.done .task-text { text-decoration: line-through; color: var(--text-muted); }

.task-del {
    font-size: 14px;
    color: var(--text-faint);
    cursor: pointer;
    flex-shrink: 0;
}

.task-del:hover { color: #e74c3c; }

.task-check {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1.5px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(107, 62, 38, 0.2);
    background: rgba(107, 62, 38, 0.06);
    cursor: pointer;
}

.task-item:hover { background: rgba(107, 62, 38, 0.12); }
.task-item.done { opacity: 0.5; }

.task-sessions {
    width: 60px;
    height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: rgba(107, 62, 38, 0.12);
    font-size: 14px;
    color: var(--text);
    font-family: 'helvetica neue', sans-serif;
    text-align: center;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    font-weight: 600;
}

.task-sessions:focus {
    border-color: var(--accent);
    background: rgba(107, 62, 38, 0.14);
}

.task-sessions::-webkit-outer-spin-button,
.task-sessions::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.task-sessions[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/*break banner*/
.break-banner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    transform: translate(-50%, -50%);
    background: var(--bg2);
    border-radius: 16px;
    border: 1.5px solid var(--border);
    padding: 28px 36px;
    text-align: center;
}

.break-banner h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-strong);
    margin-bottom: 6px;
}

.break-banner p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.break-banner button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 9px 22px;
    cursor: pointer;
    font-family: 'helvetica neue', sans-serif;
    font-size: 13px;
}


/*cups*/
.cup-wrap {
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -52%);
    flex-shrink: 0;
}
.cup-img {
    display: block;
    width: 500px;
    height: 500px;
    object-fit: contain;
}

.cup-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tabs {
    display: flex;
    border-bottom: 1.5px solid rgba(107, 62, 38, 0.25);
}
.tab {
    flex: 1;
    padding: 11px 6px;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-family: 'helvetica neue', sans-serif;
}
.tab:hover {
    color: var(--text);
}
.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.tab:active {
    color: var(--accent);
}
.tab-pane {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}
.tab-pane.active {
    display: flex;
}
.pane-inner {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-muted);
    font-weight: 500;
}

.track {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 9px;
    border: 1.5px solid rgba(107, 62, 38, 0.15);
    cursor: pointer;
    background: rgba(107, 62, 38, 0.03);
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-name {
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-vibe {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}
.track-play {
    font-size: 12px;
    color: var(--accent);
    opacity: 0;
}
.track:hover .track-play,
.track.playing .track-play {
    opacity: 1;
}

/*settings*/
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

}

.setting-input {
    background: rgba(107, 62, 38, 0.07);
    border: 1.5px solid var(--border);
    border-radius: 7px;
    padding: 5px 8px;
    font-size: 13px;
    color: var(--text);
    font-family: 'helvetica neue', sans-serif;
    width: 58px;
    text-align: center;
    outline: none;
}

.setting-input:focus {
    border-color: var(--accent);
}

.apply-btn {
    background: var(--accent);
    color: #fff;
    border: none; 
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-family: 'helvetica neue', sans-serif;
    align-self: flex-start;
    font-size: 13px;
}

.apply-btn:hover {
    background: var(--accent-dark);
}

.divider {
    border: none; 
    border-top: 1px solid rgba(107, 62, 38, 0.15); 

}

.swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s, border-color 0.2s;
}

.swatches {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.swatch-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.swatch-wrap:hover .swatch{
    transform: scale(1.12);
}
.swatch-wrap.active .swatch {
    border-color: rgba(0, 0, 0, 0.3);
    transform: scale(1.15);
}

.swatch-label {
    font-size: 9px;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    transition: color 0.4s;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text);
}
.toggle-row input {
    accent-color: var(--accent);
    width: 14px;
    height: 14px;
}

#toast {
    position: fixed;
    bottom: 165px;
    left: 20px;
    color: #fff;
    background: var(--accent-dark);
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
}

.track-art {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    background: #fff;
    flex-shrink: 0;
    border: 1.5px solid rgba(107, 62, 38, 0.2);
    overflow: hidden; 
}

.track-art img {
    width: 100%; 
    height: 100%;
    object-fit: cover;

}

.pookie {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 130px;
    height: 130px;
    background: var(--bg2);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: transform 0.25s, background 0.4s, border-color 0.4s;
    overflow: hidden;
}
.pookie:hover {
    transform: scale(1.1);
    rotate: -4deg;
}
.pookie img {
    width: 120%;
    height: 120%;
    object-fit: contain;
    padding: 0;
}

.sp-album-art {
    width: 100%;
    height: 100px;
    border-radius: 10px;
    background: rgba(107, 62, 38, 0.07);
    border: 1.5px solid var(--border);
    overflow: hidden;
    transition: border-color 0.4s;
}
.sp-album-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.sp-connect-btn {
    background: #1db954;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 9px 16px;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    font-family: 'helvetica neue', sans-serif;
    transition: background 0.2s;
}
.sp-connect-btn:hover {
    background: #19a349;
}
.sp-player {
    display: none;
    flex-direction: column;
    gap:10px; 
}
.sp-track-name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.4s;
}

.sp-artist {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.4s;
}
.sp-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}
.sp-btn {
    background: rgba(107, 62, 38, 0.08);
    border: 1.5px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--accent);
    transition: background 0.2s, border-color 0.4s;
}

.sp-btn:hover {
    background: rgba(107, 62, 38, 0.16);
}
.sp-btn.play {
    background: var(--accent);
    color: #fff;
    width: 36px;
    height: 36px;
    border-color: var(--accent);
}
.sp-btn.play:hover {
    background: var(--accent-dark);
}
.sp-progress-wrap {
    flex: 1;
    height: 3px;
    background: var(--border-mid);
    border-radius: 2px;
    cursor: pointer;
}
.sp-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: width 1s linear;
}