/*
 * static/css/flash-modal.css
 *
 * Modal per a missatges flash (substitueix els antics alert Bootstrap).
 * Reutilitza els components .ui-modal* de ui-modals.css.
 */

#flashModal .ui-modal {
    max-width: 420px;
}

/* ─── Icones segons categoria ─── */
.fm-icon--danger {
    background: rgba(224, 82, 82, 0.1);
    color: #e05252;
}

.fm-icon--warning {
    background: rgba(255, 193, 7, 0.1);
    color: #b8860b;
}

.fm-icon--success {
    background: rgba(45, 198, 83, 0.1);
    color: #2ac35a;
}

.fm-icon--info {
    background: rgba(79, 125, 243, 0.1);
    color: #4f7df3;
}

/* ─── Dark mode ─── */
[data-theme="dark"] .fm-icon--danger {
    background: rgba(224, 82, 82, 0.12);
    color: #f08080;
}

[data-theme="dark"] .fm-icon--warning {
    background: rgba(230, 180, 48, 0.12);
    color: #e6b430;
}

[data-theme="dark"] .fm-icon--success {
    background: rgba(45, 198, 83, 0.12);
    color: #2dc653;
}

[data-theme="dark"] .fm-icon--info {
    background: rgba(107, 150, 255, 0.12);
    color: #6b96ff;
}

[data-theme="dark"] #flashModal .ui-modal-title {
    color: #e8e8f0;
}

[data-theme="dark"] #flashModal .ui-modal-body-text {
    color: #c0c0d8;
}