body {
    font-family: system-ui, -apple-system, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin:0;
    background: #f5f5f5;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}   

#display {
    font-size: 72px;
    font-weight: bold;
    color:#333;
    margin: 30px 0;
}

button {
    font-size: 18px;
    padding: 12px 32px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 8px;
}

button:hover {
    background: #0051D5;
}

#resetBtn {
    background: #FF3B30;
}

#resetBtn:hover {
    background: #D32F2F;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

#minutesInput {
    width: 80px;
    padding: 8px 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

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

#minutesInput.invalid {
    border-color: #FF3B30;
    background-color: #FFF5F5;
}

#minutesInput:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.input-group label {
    font-size: 16px;
    color: #666;
}

#setBtn {
    padding: 8px 16px;
    font-size: 14px;
}

.error-message {
    color: #FF3B30;
    font-size: 14px;
    min-height: 20px;
    margin-bottom: 8px;
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

#muteBtn {
    background: #666;
    font-size: 20px;
    padding: 12px 20px;
}

#muteBtn.hover {
    background: #555;
}

#dismissBtn {
    font-size: 24px;
    font-weight: bold;
    padding: 20px 40px;
    background: #FF3B30;
    color: white;
    border: 3px solid #D32F2F;
    margin: 20px 0;
    animation: pulse 1s infinite;
}

#dismissBtn:hover {
    background: #D32F2F;
}

/* Pulse animation to draw attention */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.device-note {
    font-size: 12px;
    color: #666;
    margin-top: 16px;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 6px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Add Timer Button */
.add-timer-btn {
    font-size: 16px;
    padding: 10px 24px;
    background: #34C759;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
}

.add-timer-btn:hover {
    background: #2DB04A;
}

/* Timer Creation Form */
.timer-form {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 12px;
    margin-top: 20px;
    border: 2px solid #ddd;
}

.timer-form h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #333;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

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

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.primary-btn {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.primary-btn:hover {
    background: #0051D5;
}

.secondary-btn {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    background: #666;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.secondary-btn:hover {
    background: #555;
}

/* Timers Container */
.timers-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Individual Timer Card */
.timer-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timer-card.running {
    border-color: #007AFF;
    background: #F0F8FF;
}

.timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.timer-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.timer-display {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin: 16px 0;
}

.timer-controls {
    display: flex;
    gap: 8px;
}

.timer-controls button {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.start-btn {
    background: #34C759;
    color: white;
}

.start-btn:hover {
    background: #2DB04A;
}

.pause-btn {
    background: #FF9500;
    color: white;
}

.pause-btn:hover {
    background: #E08600;
}

.reset-btn {
    background: #007AFF;
    color: white;
}

.reset-btn:hover {
    background: #0051D5;
}

.delete-btn {
    background: #FF3B30;
    color: white;
}

.delete-btn:hover {
    background: #D32F2F;
}

/* Global Controls */
.global-controls {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 8px;
}

/* Progress Bar */
.progress-container {
    position: relative;
    width: 100%;
    height: 24px;
    background: #E5E5E5;
    border-radius: 12px;
    margin: 12px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #34C759 0%, #30D158 100%);
    border-radius: 12px;
    transition: width 0.3s ease;
}

/* Pulse animation for running timers */
.timer-card.running .progress-bar {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.75;
    }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-shadow: 0 0 2px rgba(255,255,255,0.8);
}