body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    text-align: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #003366;
}

.clock-box {
    background-color: #343a40;
    color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: inline-block;
    width: auto;
    min-width: 280px;
}

#clock {
    font-size: 3rem;
    font-weight: bold;
}

#date {
    font-size: 1rem;
    color: #ced4da;
    margin-top: 5px;
}

.code-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.code-box {
    width: 40px;
    height: 40px;
    border: 2px solid midnightblue;
    border-radius: 8px;
    background-color: white;
    transition: background-color 0.5s;
}

.code-box.filled {
    background-color: midnightblue;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 300px;
    margin: auto;
}

.keypad button {
    font-size: 1.5rem;
    padding: 15px 0;
    border-radius: 8px;
    border: none;
    background-color: #007bff;
    color: white;
    transition: background-color 0.2s;
}

.keypad button:hover {
    background-color: #0056b3;
}

.btn-zero {
    grid-column: 2;
}

.btn-back {
    grid-column: 3;
    background-color: #dc3545;
}

.btn-back:hover {
    background-color: #c82333;
}

/* Grid de botones de marcación en el modal de SweetAlert */
.swal-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.swal-marc-btn {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 8px;
    white-space: normal;   /* permite que "Regreso de Almuerzo" haga wrap si hace falta */
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 64px;      /* misma altura para los 4, sin importar si el texto es 1 o 2 líneas */
}

.swal-marc-btn i {
    font-size: 1.2rem;
}

/* En pantallas angostas (celulares en vertical), apilar los botones en 1 columna */
@media (max-width: 400px) {
    .swal-btn-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .swal-marc-btn {
        min-height: 52px;
        font-size: 1rem;
    }
}