.timer-section {
    margin: 30px 0;
}

.timer-container {
    max-width: 600px;
    margin: 0 auto;
}

.timer-display {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.time-input-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-input-group label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #6c757d;
}

.input-with-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow-btn {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 100%;
    height: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    user-select: none;
}

.arrow-btn:hover {
    background-color: #dee2e6;
}

.arrow-btn:active {
    background-color: #ced4da;
}

.up-arrow {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.down-arrow {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.time-input-group input {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 1.5rem;
    font-family: monospace;
    border: 1px solid #ced4da;
    border-radius: 0;
    padding: 5px;
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield; /* Standard property */
}

/* Hide number input arrows in Chrome, Safari, Edge, Opera */
.time-input-group input::-webkit-outer-spin-button,
.time-input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.time-separator {
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding-bottom: 10px;
}

.countdown-display {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: none;
}

.countdown-display.active {
    display: block;
}

.time {
    font-size: 3rem;
    font-family: monospace;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #28a745;
    width: 0;
    transition: width 1s linear;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 24px;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.primary-btn {
    background-color: #28a745;
    color: white;
}

.primary-btn:hover {
    background-color: #218838;
}

.primary-btn.paused {
    background-color: #dc3545;
}

.primary-btn.paused:hover {
    background-color: #c82333;
}

.secondary-btn {
    background-color: #6c757d;
    color: white;
}

.secondary-btn:hover {
    background-color: #5a6268;
}

.instructions, .about-countdown {
    margin-top: 40px;
}

.instruction-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.instruction-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #343a40;
}

.instruction-card ul {
    padding-left: 20px;
}

.instruction-card li {
    margin-bottom: 8px;
}

/* Alert styles for when timer completes */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.countdown-complete {
    animation: pulse 1.5s infinite;
    background-color: #f8d7da;
}

.countdown-complete .time {
    color: #dc3545;
}

@media (max-width: 768px) {
    .time {
        font-size: 2.5rem;
    }
    
    .time-input-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .time-input-group {
        flex-direction: row;
        gap: 10px;
    }
    
    .time-separator {
        display: none;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
}
