body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #04B45F;
    color: #333;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.form-container, .admin-panel {
    background: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 30px auto;
}

h2 {
    text-align: center;
    color: #1d2129;
    margin-bottom: 0.5rem;
}

p {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4b4f56;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

button {
    width: 100%;
    padding: 0.8rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #a0c7ff;
    cursor: not-allowed;
}

#form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 6px;
    display: none; /* Oculto por defecto */
}

#form-status.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

#form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Estilos del Panel de Administrador */
.message-list { list-style: none; padding: 0; }
.message-item {
    border: 1px solid #dddfe2;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-left-color 0.2s;
    border-left: 5px solid transparent;
}
.message-item.unread {
    background-color: #f0f8ff;
    border-left: 5px solid #007bff;
    font-weight: bold;
}
.message-header { font-size: 0.9rem; color: #606770; margin-bottom: 0.5rem; }
.message-header span { font-weight: 600; color: #1d2129; }
.message-body { color: #1d2129; line-height: 1.5; font-weight: normal; }
.message-date { font-size: 0.8rem; color: #90949c; text-align: right; margin-top: 0.5rem; }

/* Notificación discreta */
#new-message-indicator {
    /*position: fixed;*/
    top: 80px;
    right: 20px;
    background-color: #dc3545;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- Añadir al final de css/style.css --- */
/* Estructura del item de mensaje para el botón de borrado */
.message-item {
    position: relative;
    padding-left: 1.5rem; /* Espacio para el botón de borrado */
}

.message-content {
    cursor: pointer;
}

/* Botón de Borrado */
.delete-btn {
    padding-right: 18px;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1px; /* 22 */ 
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.2s, background-color 0.2s;
}

.message-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background-color: #dc3545;
    color: white;
}

/* Paginación */
.pagination {
    text-align: center;
    margin-top: 2rem;
}

.pagination a {
    color: #007bff;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination a:hover:not(.active) {
    background-color: #f4f4f4;
}

/* Modal de Confirmación */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h4 {
    margin-top: 0;
    color: #333;
}

.modal-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.modal-footer button {
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.advices{
    font-size: 12px;
    text-align: end;
}

sup {
    color: red;
}

header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

footer p {
    margin: 0;
}

h1 {
  margin: 0;
}
/*
h2 {
    text-align: center;
    color: black;
    background-color: bisque;
    padding-bottom: 10px;
}*/