* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.timer-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
}

.timer-display {
    font-size: 4.5em;
    font-weight: bold;
    color: #667eea;
    margin: 30px 0;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.controls {
    margin-top: 40px;
}

.time-inputs {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input {
    width: 80px;
    padding: 12px;
    font-size: 1.5em;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5568d3 0%, #653a8f 100%);
}

.btn-secondary {
    background: #ffa726;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #ff9800;
}

.btn-danger {
    background: #ef5350;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #e53935;
}

.status {
    margin-top: 25px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95em;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status.running {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status.paused {
    background-color: #fff3e0;
    color: #f57c00;
}

.status.completed {
    background-color: #e8f5e9;
    color: #388e3c;
    animation: pulse 1s ease-in-out infinite;
}

.status.error {
    background-color: #ffebee;
    color: #c62828;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .timer-card {
        padding: 30px 20px;
    }
    
    .timer-display {
        font-size: 3.5em;
    }
    
    .time-inputs {
        flex-direction: column;
        gap: 15px;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

