* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.timer-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 40px;
    font-weight: 400;
}

.timer-display {
    position: relative;
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.time-circle {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-text {
    position: absolute;
    z-index: 10;
    font-size: 3.5rem;
    font-weight: 700;
    color: #2d3748;
    font-variant-numeric: tabular-nums;
}

.progress-ring {
    position: absolute;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 879.6;
    stroke-dashoffset: 879.6;
    transition: stroke-dashoffset 0.3s ease;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover:not(:disabled) {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.status {
    margin: 20px 0;
}

.status-text {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 500;
}

.settings {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    text-align: left;
}

.setting-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.setting-item label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.95rem;
}

.setting-item select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-family: inherit;
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.setting-item select:focus {
    outline: none;
    border-color: #667eea;
}

.setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

/* Animation for timer completion */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.timer-complete {
    animation: pulse 0.5s ease-in-out;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .timer-card {
        padding: 30px 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .time-circle {
        width: 250px;
        height: 250px;
    }
    
    .time-text {
        font-size: 3rem;
    }
    
    .progress-ring {
        width: 250px;
        height: 250px;
    }
    
    .progress-ring-bg,
    .progress-ring-fill {
        cx: 125;
        cy: 125;
        r: 115;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .timer-card {
        background: rgba(26, 32, 44, 0.95);
        color: #e2e8f0;
    }
    
    .title {
        color: #e2e8f0;
    }
    
    .time-text {
        color: #e2e8f0;
    }
    
    .status-text {
        color: #a0aec0;
    }
    
    .setting-item label {
        color: #a0aec0;
    }
    
    .btn-secondary {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    .btn-secondary:hover:not(:disabled) {
        background: #4a5568;
        border-color: #718096;
    }
    
    .setting-item select {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    .setting-item select:focus {
        border-color: #667eea;
    }
} 