* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    /* Replaced flat grey with a smooth, modern light gradient */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 400px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    /* Made the shadow a bit softer */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    text-align: center;
    /* Added a nice colorful accent line at the top */
    border-top: 5px solid #007bff; 
}

h1 {
    margin-bottom: 25px;
    color: #333;
    letter-spacing: 1px;
}

.timer {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 25px;
    /* Changed to a deep blue to make the numbers pop */
    color: #0056b3; 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

button {
    padding: 10px 18px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    /* Added all to transition for smooth lift effect */
    transition: all 0.2s ease; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Button Hover Effect: slightly lifts the button up */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 
   Specific Button Colors 
   Note: Make sure your HTML buttons have these IDs (e.g., id="start") 
*/
#start { background: #28a745; } /* Green */
#start:hover { background: #218838; }

#pause { background: #ffc107; color: #333; } /* Yellow */
#pause:hover { background: #e0a800; }

#reset { background: #dc3545; } /* Red */
#reset:hover { background: #c82333; }

#lap { background: #17a2b8; } /* Teal */
#lap:hover { background: #138496; }


.lap-section {
    margin-top: 30px;
    text-align: left;
}

.lap-section h3 {
    margin-bottom: 12px;
    color: #444;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

#laps {
    list-style: none;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 5px; /* Space for the scrollbar */
}

/* Styling the scrollbar to look custom */
#laps::-webkit-scrollbar {
    width: 6px;
}
#laps::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

#laps li {
    padding: 10px;
    background: #fdfdfd;
    border-left: 4px solid #007bff; /* Colorful accent on the left of each lap */
    border-bottom: 1px solid #eee;
    margin-bottom: 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

/* Laps light up slightly when hovered */
#laps li:hover {
    background: #f1f8ff; 
}