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

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

.stopwatch-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 {
    font-size: 3rem;
    font-family: monospace;
    font-weight: bold;
    color: #343a40;
}

.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;
}

.secondary-btn.reset {
    background-color: #ffc107;
    color: #212529;
}

.secondary-btn.reset:hover {
    background-color: #e0a800;
}

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

.laps-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.laps-list {
    max-height: 300px;
    overflow-y: auto;
}

.lap-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.lap-item:last-child {
    border-bottom: none;
}

.lap-item.fastest {
    color: #28a745;
}

.lap-item.slowest {
    color: #dc3545;
}

.instructions, .about-stopwatch {
    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;
}

@media (max-width: 768px) {
    .time {
        font-size: 2.5rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
}
