/* Estilos básicos para el contenedor (ajusta según tu framework) */
#flash_alerts {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000; 
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Estilos para el mensaje individual */
.flash-message {
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Clases de estado (ej. basado en Bulma/Bootstrap) */
.is-success {
    background-color: var(--dark-success);
    color: white;
}
.is-danger {
    background-color: var(--danger);
    color: white;
}

/* Estilo para el botón de cierre (usando una clase 'delete' simple) */
.delete {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.delete:hover {
    opacity: 1;
}

/* Estilo para la animación de desvanecimiento (usado por el JS) */
.is-fading {
    opacity: 0;
}

.message-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-close-button {
    background: none;
    border: none;
    color: inherit;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-weight: bold;
}