/* =====================================
   ToolNova - Cronómetro Premium
===================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#0f172a;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px;
}

.container{

    width:100%;
    max-width:700px;

    background:#1e293b;

    border-radius:20px;

    padding:40px;

    box-shadow:0 20px 50px rgba(0,0,0,.35);

}

h1{

    color:#fff;

    text-align:center;

    font-size:36px;

    margin-bottom:10px;

}

p{

    text-align:center;

    color:#94a3b8;

    margin-bottom:30px;

}

#display{

    background:#0f172a;

    color:#22c55e;

    font-size:58px;

    font-weight:bold;

    text-align:center;

    padding:30px;

    border-radius:15px;

    margin-bottom:35px;

    letter-spacing:2px;

    border:2px solid #334155;

    user-select:none;

}

.buttons{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:15px;

    margin-bottom:40px;

}

button{

    border:none;

    border-radius:12px;

    padding:15px;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

    color:white;

}

button:hover{

    transform:translateY(-3px);

}

#start{

    background:#22c55e;

}

#start:hover{

    background:#16a34a;

}

#pause{

    background:#f59e0b;

}

#pause:hover{

    background:#d97706;

}

#lap{

    background:#3b82f6;

}

#lap:hover{

    background:#2563eb;

}

#reset{

    background:#ef4444;

}

#reset:hover{

    background:#dc2626;

}

.laps{

    background:#0f172a;

    border-radius:15px;

    padding:25px;

}

.laps h2{

    color:white;

    margin-bottom:20px;

}

#lapList{

    list-style:none;

    max-height:250px;

    overflow-y:auto;

    display:flex;

    flex-direction:column;

    gap:12px;

}

#lapList li{

    background:#1e293b;

    color:white;

    padding:12px 15px;

    border-radius:10px;

    border-left:5px solid #3b82f6;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.fastest{

    border-left-color:#22c55e !important;

}

.slowest{

    border-left-color:#ef4444 !important;

}

.shortcuts{

    margin-top:30px;

    text-align:center;

}

.shortcuts p{

    color:#94a3b8;

    font-size:14px;

}

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-thumb{

    background:#475569;

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:transparent;

}

@media(max-width:768px){

.container{

    padding:25px;

}

h1{

    font-size:28px;

}

#display{

    font-size:36px;

    padding:20px;

}

.buttons{

    grid-template-columns:1fr 1fr;

}

}

@media(max-width:500px){

.buttons{

    grid-template-columns:1fr;

}

#display{

    font-size:28px;

}

}