/* Base Styles */
:root {
    --primary-color: #ff6347;
    --secondary-color: #4a6fa5;
    --background-color: #f8f9fa;
    --text-color: #333;
    --light-text: #f8f9fa;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 600px;
    width: 100%;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 20px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.tagline {
    color: #777;
    font-style: italic;
}

/* Timer Display Styles */
.timer-container {
    text-align: center;
    margin-bottom: 30px;
}

.timer-display {
    font-size: 5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.timer-label {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 15px;
}

.progress-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 1s linear;
}

/* Button Styles */
.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.primary {
    background-color: var(--primary-color);
    color: white;
}

.primary:hover:not(:disabled) {
    background-color: #e05a40;
}

.secondary {
    background-color: var(--secondary-color);
    color: white;
}

.secondary:hover:not(:disabled) {
    background-color: #3d5d8a;
}

/* Settings Styles */
.settings {
    margin-bottom: 30px;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

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

.setting-group label {
    flex: 1;
}

.setting-group input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.setting-group.checkbox {
    justify-content: flex-start;
    gap: 10px;
}

/* Statistics Styles */
.stats {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stat-label {
    color: #555;
}

.stat-value {
    font-weight: bold;
    color: var(--secondary-color);
}

/* Footer Styles */
footer {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    margin-top: auto;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 650px) {
    .container {
        padding: 20px;
    }

    .timer-display {
        font-size: 4rem;
    }

    .controls {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .timer-display {
        font-size: 3rem;
    }

    .setting-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .setting-group input[type="number"] {
        width: 100%;
    }
}