:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --btn-bg: #f5f5f5;
    --btn-hover: #e0e0e0;
    --border-color: #000000;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #ffffff;
    --btn-bg: #2a2a2a;
    --btn-hover: #3a3a3a;
    --border-color: #ffffff;
}

body {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.2s, color 0.2s;
    margin: 0;
}

#controls-top {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 100;
}

#theme-toggle, #mini-toggle {
    font-size: 1.1rem;
    padding: 10px;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--text-color);
    border-radius: 4px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#theme-toggle:hover, #mini-toggle:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

#app {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#status {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0px;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

#timer-display {
    font-size: 15rem;
    font-weight: 800;
    line-height: 0.8;
    margin: 20px 0 10px 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1rem;
}

#time-adjust {
    margin-bottom: 30px;
}

#time-adjust button {
    font-size: 1.5rem;
    padding: 5px 15px;
    margin: 0 15px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-weight: 300;
    transition: all 0.2s;
}

#time-adjust button:hover {
    font-weight: 700;
}

#buttons button {
    font-size: 1.2rem;
    padding: 15px 30px;
    margin: 10px;
    cursor: pointer;
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
}

#buttons button:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Mini Window Styles */
body.mini-window {
    background-color: var(--bg-color);
    overflow: hidden;
}

body.mini-window #controls-top,
body.mini-window #time-adjust,
body.mini-window #buttons {
    display: none;
}

body.mini-window #app {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}

body.mini-window #status {
    font-size: 0.8rem;
    margin: 0 0 5px 0;
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.05rem;
}

body.mini-window #timer-display {
    font-size: 2.5rem;
    margin: 0;
    line-height: 1;
    letter-spacing: 0;
}
