@font-face {
    font-family: 'digital-7';
    src: url('../includes/digital-7.woff2') format('woff2'),
         url('../includes/digital-7.woff') format('woff'), 
         url('../includes/digital-7.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    color: #797979;
    background: #fff;
    padding: 0 !important;
    margin: 0 !important;
}

#container {
    width: 100%;
}

/* Logo e imagen siempre centrado y adaptable */
.imagen {
    width: 100%;
    max-width: 360px;
    margin: 20px auto 0 auto;
    text-align: center;
}
.imagen img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.formulario {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.tiempo {
    display: inline-block;
    margin: 0 10px 10px 0;
    width: 56px !important;
    min-width: 56px;
    max-width: 56px;
    box-sizing: border-box;
    text-align: center;
    vertical-align: middle;
    font-size: 1em;
    padding-right: 0;
    padding-left: 0;
}

.userdata {
    text-align: right;
    width: 100%;
    font-size: 1em;
    margin-bottom: 10px;
}

.board {
    background: #000;
    font-family: 'digital-7';
    font-size: 40px;
    color: #f00;
    width: 120px;
    text-align: center;
    margin: 10px auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}
table td, table th {
    padding: 8px !important;
    text-align: center;
    vertical-align: middle;
}

/* Indicador UDP */
.indicador {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 7px;
    border: 2px solid #888;
    vertical-align: middle;
}
.indicador-verde {
    background: #1acc24;
    border-color: #1acc24;
}
.indicador-amarillo {
    background: #ffe600;
    border-color: #ffe600;
}
.indicador-rojo {
    background: #d10000;
    border-color: #d10000;
}

/* Responsive: tabla como columna en móvil */
@media (max-width: 768px) {
    .formulario {
        max-width: 100%;
        padding: 10px;
    }
    .imagen {
        max-width: 220px;
        margin-top: 10px;
    }
    .board {
        width: 100%;
        font-size: 28px;
    }
    /* Cada planta una fila vertical */
    .tabla-admin table,
    .tabla-admin tr {
        display: block;
        width: 100%;
    }
    .tabla-admin td,
    .tabla-admin th {
        display: block;
        width: 100%;
        margin-bottom: 12px;
        border-bottom: 1px solid #ccc;
        text-align: left;
    }
    .tabla-admin tr {
        margin-bottom: 0;
    }
}

/* Responsive: inputs de tiempo más grandes en móvil */
@media (max-width: 480px) {
    .tiempo {
        width: 48px !important;
        min-width: 48px;
        max-width: 48px;
        font-size: 0.98em;
    }
    .formulario {
        padding: 0 2vw;
    }
    .userdata {
        font-size: 0.97em;
    }
}

input::placeholder {
    font-size: 1em;
    opacity: 0.8;
    text-align: center;
}
.tabla-plantas {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.tabla-plantas th, .tabla-plantas td {
    padding: 12px 6px !important;
    text-align: center;
    vertical-align: middle;
}

.planta-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 240px;
}

.board {
    background: #000;
    font-family: 'digital-7';
    font-size: 40px;
    color: #f00;
    width: 90px;
    height: 48px;
    text-align: center;
    margin: 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inputs-tiempo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.input-hora, .input-minuto {
    width: 50px !important;
    min-width: 50px;
    max-width: 50px;
    height: 40px;
    font-size: 1.3em;
    text-align: center;
    margin: 0 4px;
}

.separador-tiempo {
    font-size: 1.4em;
    margin: 0 2px;
}

.btn-enviar {
    margin-top: 6px;
    width: 90%;
    min-width: 90px;
}

@media (max-width: 1100px) {
    .formulario {
        max-width: 98vw;
    }
}

@media (max-width: 768px) {
    .formulario {
        max-width: 100%;
        padding: 10px;
    }
    .imagen {
        max-width: 220px;
        margin-top: 10px;
    }
    .board {
        width: 100%;
        font-size: 28px;
        height: 38px;
        min-height: 38px;
    }
    .input-hora, .input-minuto {
        width: 44px !important;
        min-width: 44px;
        max-width: 44px;
        height: 32px;
        font-size: 1em;
    }
    .tabla-plantas th, .tabla-plantas td {
        padding: 8px 2px !important;
    }
}

/* Mantener inputs alineados en móvil */
@media (max-width: 480px) {
    .input-hora, .input-minuto {
        width: 38px !important;
        min-width: 38px;
        max-width: 38px;
        height: 26px;
        font-size: 0.98em;
    }
    .formulario {
        padding: 0 2vw;
    }
    .userdata {
        font-size: 0.97em;
    }
}

input::placeholder {
    font-size: 1em;
    opacity: 0.8;
    text-align: center;
}