:root {
    --bg-color: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --secondary: #64748b;
    --accent: #10b981;
    --danger: #ef4444;
    --font-family: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.home-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    color: var(--primary);
    background: white;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    z-index: 100;
    font-size: 1.5rem;
}

.home-btn:hover {
    transform: scale(1.1);
}

.app-container {
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

header {
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
}

.timer-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 40px;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-linecap: round;
    /* Circumference = 2 * PI * 130 ≈ 816.8 */
    stroke-dasharray: 816.8 816.8;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#timeDisplay {
    font-size: 4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

#statusText {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 5px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-primary.paused {
    background: #eab308;
    /* Yellow for pause */
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px;
    /* Square/Icon button */
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.settings {
    display: flex;
    justify-content: center;
}

.input-group {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-group input {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px;
    border-radius: 5px;
    width: 60px;
    text-align: center;
    font-family: inherit;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Animations */
@keyframes pulse-red {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.timer-text.danger {
    color: var(--danger);
    animation: pulse-red 1s infinite;
}

.progress-ring__circle.danger {
    stroke: var(--danger);
}