:root {
    --primary-color: #4a6fa5;
    --primary-dark: #324b72;
    --accent-color: #ff9eb5;
    --text-color: #fffdf5;
    --glass-effect: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(150deg, var(--primary-color) 0%, var(--primary-color) 55%, var(--accent-color) 100%);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        linear-gradient(150deg, var(--primary-color) 0%, var(--primary-color) 40%, var(--accent-color) 100%);
}

.container {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.app-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-color);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.watch-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 40px;
    background: radial-gradient(circle, #0a1f3d 40%, #160f19 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 0 40px rgba(74, 111, 165, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.outer-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-color);
    border-right-color: var(--text-color);
    animation: spin 3s linear infinite;
    opacity: 0.8;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.timer-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(255, 253, 245, 0.5);
    z-index: 2;
    letter-spacing: 5px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.timer-display span {
    display: inline-block;
    width: 80px; 
    text-align: center;
    font-variant-numeric: tabular-nums; 
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn {
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
}

.primary {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), #ff7596);
    box-shadow: 0 5px 20px rgba(255, 117, 150, 0.4);
}

.primary:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 30px rgba(255, 117, 150, 0.6);
}

.primary:active { transform: scale(0.95); }

.secondary {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
}

.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.secondary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.laps-container {
    max-height: 150px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    margin: 0 auto;
}

.laps-container h3 {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

#lapsList {
    list-style: none;
}

#lapsList li {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 10px; }