:root {
    --primary-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --bg-color: #0F172A;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --ring-bg: #1E293B;
    --ring-color: #FF6B6B;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 107, 107, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 3.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.settings {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.time-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 8px;
    width: 70px;
    font-size: 1.1rem;
    font-family: inherit;
    text-align: center;
    outline: none;
    transition: all 0.2s;
}

.time-input:focus {
    border-color: var(--ring-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.time-input::-webkit-inner-spin-button, 
.time-input::-webkit-outer-spin-button { 
    opacity: 1;
}

.timer-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-ring {
    position: absolute;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.3));
}

.progress-ring__body {
    stroke: var(--ring-bg);
}

.progress-ring__circle {
    stroke: var(--ring-color);
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.time-display {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    z-index: 10;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.controls {
    display: flex;
    gap: 1.25rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
    transform: scale(0.96);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 20px -10px rgba(255, 107, 107, 0.6);
}

.btn-primary:not(:disabled):hover {
    box-shadow: 0 15px 25px -10px rgba(255, 107, 107, 0.8);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-reset {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-reset:not(:disabled):hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
