:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #666666;
    --accent: #00ffcc; /* Neon tight green/cyan */
    --accent-dim: rgba(0, 255, 204, 0.2);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    background-image: url('bg_texture.png');
    background-size: cover;
    background-position: center;
    color: var(--text-main);
    font-family: var(--font-family);
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* No scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
}

#app {
    width: 100%;
    height: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

/* Task Input Area */
.task-container {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#taskInput {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--text-muted);
    color: var(--text-main);
    font-size: 1.2rem;
    text-align: center;
    padding: 10px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

#taskInput:focus {
    border-bottom-color: var(--accent);
}

#taskInput::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

#activeTaskDisplay {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
    width: 100%;
    word-wrap: break-word;
}

.hidden {
    display: none !important;
}

/* Timer Area */
.timer-container {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.1s ease;
}

.timer-container:active {
    transform: scale(0.97);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg); /* Start at 12 o'clock */
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s linear, stroke 0.3s ease;
}

.timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to container */
}

#timeText {
    font-size: 3.5rem;
    font-weight: 200;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

#statusText {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

/* Controls */
.controls {
    height: 50px;
    display: flex;
    justify-content: center;
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:active {
    background: rgba(255,255,255,0.1);
}

/* State Classes */
.is-running #statusText {
    color: var(--accent);
}
.is-paused .progress-ring__circle {
    stroke: var(--text-muted);
}