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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 90%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

.inputs {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #007AFF;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#startBtn {
    background: #34C759;
    color: white;
}

#stopBtn {
    background: #FF9500;
    color: white;
}

#resetBtn {
    background: #FF3B30;
    color: white;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.display {
    text-align: center;
}



.phase {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #666;
}

.phase.work {
    color: #34C759;
}

.phase.rest {
    color: #007AFF;
}

.phase.ready {
    color: #666;
}

.progress-container {
    position: relative;
    display: inline-block;
    width: 220px;
    height: 220px;
}

.progress-ring {
    transform: rotate(-90deg);
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.progress-ring-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: #34C759;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 0.3s ease;
    transform-origin: center;
}

.progress-ring-fill.work {
    stroke: #34C759;
}

.progress-ring-fill.rest {
    stroke: #007AFF;
}

.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.25rem;
}

.set-info {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    
    .progress-container {
        width: 180px;
        height: 180px;
    }
    
    .progress-ring {
        width: 100%;
        height: 100%;
    }
    
    .timer {
        font-size: 2rem;
    }
    
    .controls {
        flex-direction: column;
    }
}