/* Simple Timer Styles */

.timer-section,
.stopwatch-section {
    background: var(--card-bg-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--subtle-border-color);
}

.timer-section h2,
.stopwatch-section h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.timer-display,
.stopwatch-display {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    color: var(--highlight-color);
    background: var(--main-bg-color);
    border: 2px solid var(--subtle-border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.timer-inputs input {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid var(--subtle-border-color);
    border-radius: 6px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    background: var(--main-bg-color);
    color: var(--text-color);
}

.timer-inputs input:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.2);
}

.timer-inputs span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.timer-controls,
.stopwatch-controls {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

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

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

.btn-primary:hover:not(:disabled) {
    background-color: #005a9e;
    transform: translateY(-1px);
}

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

.btn-secondary:hover:not(:disabled) {
    background-color: #4b5563;
    transform: translateY(-1px);
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background-color: #d97706;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #b91c1c;
    transform: translateY(-1px);
}

.btn-info {
    background-color: #0891b2;
    color: white;
}

.btn-info:hover:not(:disabled) {
    background-color: #0e7490;
    transform: translateY(-1px);
}

.lap-times {
    margin-top: 1.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.lap-time {
    background: var(--main-bg-color);
    border: 1px solid var(--subtle-border-color);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--text-color);
}

.lap-time:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timer-section,
    .stopwatch-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .timer-display,
    .stopwatch-display {
        font-size: 2.5rem;
        padding: 0.75rem;
    }
    
    .timer-controls,
    .stopwatch-controls {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-width: 70px;
    }
    
    .timer-inputs input {
        width: 70px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .timer-display,
    .stopwatch-display {
        font-size: 2rem;
    }
    
    .timer-controls,
    .stopwatch-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Animation for timer finishing */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.timer-finished {
    animation: pulse 0.5s ease-in-out 3;
    background-color: rgba(220, 38, 38, 0.2) !important;
    border-color: #dc2626 !important;
    color: #dc2626 !important;
}