/* static/style.css */

/* 1. ESTILO DEL CUERPO Y FONDO (NOTA: background-image se añade en el HTML) */
/* static/style.css */

/* 1. ESTILO DEL CUERPO Y FONDO */
/* static/style.css */

/* 1. ESTILO DEL CUERPO Y FONDO (RESTAURADO) */
body { 
    font-family: Arial, sans-serif; 
    
    /* PROPIEDADES ESENCIALES DE DISEÑO (Para centrar el contenido) */
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding-top: 50px; 
    
    /* Propiedades del Fondo (movidas desde index.html) */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover; /* Se necesita para que el ::before funcione */
    background-attachment: fixed;
    
    /* Colores */
    background-color: #333333; /* Color de fallback */
    color: #FFFFFF; /* Texto general en blanco */
}

/* ... el resto del CSS del #container, h1, etc. ... */

/* 2. CONTENEDOR PRINCIPAL (Tarjeta Blanca) */
#container { 
    width: 450px; 
    max-width: 95%; 
    padding: 30px; 
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); 
    color: #333; 
    
    /* HACER QUE EL CONTENEDOR VAYA POR ENCIMA DEL FONDO DESENFOCADO */
    position: relative; /* Necesario para que z-index funcione correctamente */
    z-index: 10;
}

/* ... el resto del CSS se mantiene igual ... */

/* 3. COLORES DE ÉNFASIS (Rojo) */
h1 { 
    color: #CC0000; /* Rojo principal */
    text-align: center; 
    margin-bottom: 20px; 
}

/* 4. CAMPOS DE FORMULARIO */
input, .action-button { 
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    box-sizing: border-box; 
    border-radius: 5px; 
    font-size: 16px; 
}
input { 
    border: 1px solid #CC0000; /* Borde rojo */
}

/* 5. ESTILO DEL BOTÓN PRINCIPAL */
.action-button { 
    background-color: #CC0000; /* Botón en rojo */
    color: white; 
    border: none; 
    cursor: pointer; 
    transition: background-color 0.3s; 
}
.action-button:hover:not(:disabled) { 
    background-color: #990000; /* Rojo oscuro al pasar el ratón */
}
.action-button:disabled { 
    background-color: #666666; /* Gris/Negro para deshabilitado */
    cursor: not-allowed; 
}

/* 6. MENSAJES DE RESULTADO */
#resultado { 
    margin-top: 20px; 
    padding: 15px; 
    border-radius: 5px; 
    text-align: center; 
    border: 1px solid #333; 
    min-height: 50px; 
}
.success { 
    background-color: #ffe6e6; /* Fondo rojo muy claro */
    border-color: #CC0000; /* Borde rojo */
    color: #333; /* Texto oscuro */
}
.error { 
    background-color: #ffe6e6; 
    border-color: #CC0000; 
    color: #CC0000; /* Texto de error en rojo */
}

/* 7. ESTILOS DE LISTA DE CÓDIGOS */
.code-list-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px; 
    margin-bottom: 8px; 
    border: 1px solid #888; /* Gris oscuro para bordes */
    border-radius: 4px; 
    background-color: #f9f9f9; /* Fondo de ítem claro */
}
#codeList > .code-list-item:first-child { 
    border: 2px solid #CC0000; /* Borde de ítem principal en rojo */
    background-color: #ffcccc; /* Fondo de ítem principal en rojo claro */
    font-weight: bold;
}
.code-info { text-align: left; display: flex; flex-direction: column; }
.code-value { 
    font-size: 20px; 
    color: #000000; /* Código en negro */
    margin-bottom: 5px; 
}
.code-time { font-size: 12px; color: #555; }

/* 8. TEMPORIZADOR Y BOTÓN COPIAR */
.code-timer { font-size: 12px; color: #CC0000; font-weight: bold; margin-top: 2px; }
.copy-button {
    background-color: #333333; /* Botón de Copiar en negro */
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.2s;
    margin-left: 10px;
}
.copy-button:hover {
    background-color: #000000; /* Negro puro al pasar el ratón */
}
.code-action {
    display: flex;
    align-items: center;
}