/* ============================================================
   CABAL Admin — Toastr Notification Styles
   ============================================================ */

.toastr-container {
    position: fixed; z-index: 99999;
    pointer-events: none;
    display: flex; flex-direction: column; gap: 8px;
    max-width: 400px; width: 100%;
    padding: 12px;
}
.toastr-container > * { pointer-events: auto; }

/* Positions */
.toastr-top-right { top: 0; right: 0; }
.toastr-top-left { top: 0; left: 0; }
.toastr-bottom-right { bottom: 0; right: 0; }
.toastr-bottom-left { bottom: 0; left: 0; }
.toastr-top-center { top: 0; left: 50%; transform: translateX(-50%); }
.toastr-bottom-center { bottom: 0; left: 50%; transform: translateX(-50%); }
.toastr-top-full-width { top: 0; left: 0; max-width: 100%; }
.toastr-bottom-full-width { bottom: 0; left: 0; max-width: 100%; }

/* Toast base */
.toastr {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-radius: var(--radius-lg, 12px);
    position: relative; overflow: hidden; cursor: default;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(12px);
    margin-bottom: 0;
    max-height: 200px;
    border: 1px solid transparent;
}

/* Icon */
.toastr-icon {
    width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
}
.toastr-icon svg {
    width: 22px; height: 22px; stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Body */
.toastr-body { flex: 1; min-width: 0; }
.toastr-title {
    font-size: 0.85rem; font-weight: 700; margin-bottom: 2px;
    line-height: 1.3;
}
.toastr-message {
    font-size: 0.8rem; font-weight: 400; line-height: 1.4;
    opacity: 0.9;
}

/* Close button */
.toastr-close {
    position: absolute; top: 8px; right: 10px;
    background: none; border: none; font-size: 18px; line-height: 1;
    cursor: pointer; opacity: 0.5; transition: all 0.25s;
    width: 24px; height: 24px; display: grid; place-items: center;
    border-radius: 4px;
}
.toastr-close:hover { opacity: 1; background: rgba(255,255,255,0.15); }

/* Progress bar */
.toastr-progress {
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: rgba(0,0,0,0.1);
}
.toastr-progress-bar {
    width: 100%; height: 100%;
    border-radius: 0 0 var(--radius-lg, 12px) var(--radius-lg, 12px);
}

/* ── Success ─────────────────────────────────────────── */
.toastr-success {
    background: linear-gradient(135deg, #065f46, #047857);
    border-color: rgba(16,185,129,0.3);
    color: #d1fae5;
}
.toastr-success .toastr-icon { color: #34d399; }
.toastr-success .toastr-title { color: #ecfdf5; }
.toastr-success .toastr-close { color: #a7f3d0; }
.toastr-success .toastr-progress-bar { background: #34d399; }

/* ── Error ───────────────────────────────────────────── */
.toastr-error {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    border-color: rgba(244,63,94,0.3);
    color: #ffe4e6;
}
.toastr-error .toastr-icon { color: #fb7185; }
.toastr-error .toastr-title { color: #fff1f2; }
.toastr-error .toastr-close { color: #fecdd3; }
.toastr-error .toastr-progress-bar { background: #fb7185; }

/* ── Warning ─────────────────────────────────────────── */
.toastr-warning {
    background: linear-gradient(135deg, #78350f, #92400e);
    border-color: rgba(245,158,11,0.3);
    color: #fef3c7;
}
.toastr-warning .toastr-icon { color: #fbbf24; }
.toastr-warning .toastr-title { color: #fffbeb; }
.toastr-warning .toastr-close { color: #fde68a; }
.toastr-warning .toastr-progress-bar { background: #fbbf24; }

/* ── Info ────────────────────────────────────────────── */
.toastr-info {
    background: linear-gradient(135deg, #312e81, #3730a3);
    border-color: rgba(99,102,241,0.3);
    color: #e0e7ff;
}
.toastr-info .toastr-icon { color: #a5b4fc; }
.toastr-info .toastr-title { color: #eef2ff; }
.toastr-info .toastr-close { color: #c7d2fe; }
.toastr-info .toastr-progress-bar { background: #818cf8; }

/* ── Light theme adjustments ─────────────────────────── */
html[data-theme="light"] .toastr-success {
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    border-color: rgba(16,185,129,0.3); color: #065f46;
}
html[data-theme="light"] .toastr-success .toastr-icon { color: #059669; }
html[data-theme="light"] .toastr-success .toastr-title { color: #064e3b; }
html[data-theme="light"] .toastr-success .toastr-close { color: #065f46; }

html[data-theme="light"] .toastr-error {
    background: linear-gradient(135deg, #ffe4e6, #fff1f2);
    border-color: rgba(244,63,94,0.3); color: #881337;
}
html[data-theme="light"] .toastr-error .toastr-icon { color: #e11d48; }
html[data-theme="light"] .toastr-error .toastr-title { color: #9f1239; }
html[data-theme="light"] .toastr-error .toastr-close { color: #881337; }

html[data-theme="light"] .toastr-warning {
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    border-color: rgba(245,158,11,0.3); color: #78350f;
}
html[data-theme="light"] .toastr-warning .toastr-icon { color: #d97706; }
html[data-theme="light"] .toastr-warning .toastr-title { color: #92400e; }
html[data-theme="light"] .toastr-warning .toastr-close { color: #78350f; }

html[data-theme="light"] .toastr-info {
    background: linear-gradient(135deg, #e0e7ff, #eef2ff);
    border-color: rgba(99,102,241,0.3); color: #3730a3;
}
html[data-theme="light"] .toastr-info .toastr-icon { color: #4f46e5; }
html[data-theme="light"] .toastr-info .toastr-title { color: #312e81; }
html[data-theme="light"] .toastr-info .toastr-close { color: #3730a3; }

html[data-theme="light"] .toastr { box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06); }
html[data-theme="light"] .toastr-close:hover { background: rgba(0,0,0,0.08); }
