body {
    font-family: sans-serif;
    background-color: #f9f9f9;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
}

textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 10px; /* Espacio entre botones */
    margin-bottom: 10px; /* Espacio debajo de los botones */
}

button:hover {
    background-color: #3e8e41;
}

#mensaje {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Nuevos estilos para la lista de registros */
.registros-guardados {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.registros-guardados h2 {
    text-align: center;
    margin-bottom: 15px;
}

#listaRegistros {
    list-style: none;
    padding: 0;
}

#listaRegistros li {
    background-color: #f0f0f0;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#listaRegistros li .texto-situacion {
    flex-grow: 1;
}

#listaRegistros li .fecha-situacion {
    font-size: 0.8em;
    color: #666;
    margin-left: 15px;
    white-space: nowrap; /* Evita que la fecha se rompa en varias líneas */
}

#listaRegistros li button {
    background-color: #dc3545; /* Rojo para borrar */
    padding: 5px 10px;
    font-size: 0.8em;
    margin-left: 10px;
}

#listaRegistros li button:hover {
    background-color: #c82333;
}

#borrarTodoBtn {
    background-color: #ffc107; /* Amarillo para borrar todo */
    color: #333;
    margin-top: 15px;
    display: block; /* Para que ocupe su propia línea */
    width: fit-content; /* Se ajusta al contenido */
    margin-left: auto;
    margin-right: auto;
}

#borrarTodoBtn:hover {
    background-color: #e0a800;
}

.acciones {
    margin-top: 20px;
    text-align: center;
}

/* Modo Oscuro */
body.modo-oscuro {
    background-color: #333;
    color: #f9f9f9;
}

.modo-oscuro .container {
    background-color: #444;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.modo-oscuro textarea {
    background-color: #555;
    color: #f9f9f9;
    border: 1px solid #666;
}

.modo-oscuro #listaRegistros li {
    background-color: #555;
    color: #f9f9f9;
}

.modo-oscuro #listaRegistros li .fecha-situacion {
    color: #bbb;
}

.modo-oscuro #borrarTodoBtn {
    background-color: #d1b44b; /* Amarillo oscuro para borrar todo */
    color: #222;
}

.modo-oscuro #borrarTodoBtn:hover {
    background-color: #c0a13e;
}