/* =====================================================
 * 09-alerts.css — Toast Notifications, Confirm Modals
 * ===================================================== */

/* ── Toast Messages ── */
.toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: #ffffff;
    padding: 16px 28px;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-msg.active { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-success { border-right: 4px solid #10b981; }
.toast-error   { border-right: 4px solid #ef4444; }
.toast-warning { border-right: 4px solid #f59e0b; }
.toast-info    { border-right: 4px solid #3b82f6; }

/* ── Confirm/Alert Modal ── */
.ui-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
    z-index: 10000; opacity: 0; transition: opacity 0.3s ease;
}
.ui-modal-overlay.active { display: flex; opacity: 1; }

.ui-modal-container {
    background: #ffffff; width: 100%; max-width: 420px;
    border-radius: 0; padding: 32px; text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ui-modal-overlay.active .ui-modal-container { transform: scale(1) translateY(0); }

.ui-modal-icon {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 24px;
}
.modal-type-success .ui-modal-icon { background: #ecfdf5; color: #10b981; }
.modal-type-error   .ui-modal-icon { background: #fef2f2; color: #ef4444; }
.modal-type-warning .ui-modal-icon { background: #fffbeb; color: #f59e0b; }
.modal-type-info    .ui-modal-icon { background: #eff6ff; color: #3b82f6; }

.ui-modal-title   { font-size: 1.25rem; font-weight: 800; color: #1e293b; margin-bottom: 12px; }
.ui-modal-message { font-size: 0.95rem; line-height: 1.6; color: #64748b; margin-bottom: 24px; }
.ui-modal-footer  { display: flex; gap: 12px; justify-content: center; }

.ui-modal-btn          { padding: 12px 24px; border-radius: 0; font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer; transition: all 0.2s; }
.ui-modal-btn-primary  { background: var(--primary); color: #ffffff; }
.ui-modal-btn-primary:hover { background: #7c5dfa; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(142,113,240,0.3); }
.ui-modal-btn-secondary { background: #f1f5f9; color: #475569; }
.ui-modal-btn-secondary:hover { background: #e2e8f0; }
