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

body {
    background: #1a1a2e;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    transform: scale(1.3);
}

/* Mode buttons */
.modes {
    display: flex;
    gap: 8px;
    background: #16213e;
    padding: 6px;
    border-radius: 30px;
}

.modes button {
    background: none;
    border: none;
    color: #aaa;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.modes button.active {
    background: #0f3460;
    color: #4fc3f7;
}

#session-count {
    color: #4fc3f7;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.timer-display {
    position: relative;
    width: 200px;
    height: 200px;
}

.ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #16213e;
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: #4fc3f7;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s ease;
}

.time-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.controls {
    display: flex;
    gap: 12px;
}

.controls button {
    padding: 12px 32px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.2s;
}

#start {
    background: #4fc3f7;
    color: #1a1a2e;
    font-weight: bold;
}

#start:hover {
    background: #81d4fa;
}

#reset {
    background: #16213e;
    color: #aaa;
}

#reset:hover {
    color:#fff;
}