/* ===== Toast Notification ===== */
.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: max-content;
    max-width: calc(100vw - 40px);
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 16px;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: white;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    pointer-events: all;
    animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
    min-width: 260px;
    text-align: right;
    direction: rtl;
}

.toast.success { background: linear-gradient(135deg, #10b981, #059669); }
.toast.error   { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast.info    { background: linear-gradient(135deg, #0284c7, #0369a1); }
.toast.warning { background: linear-gradient(135deg, #f59e0b, #d97706); }

.toast i { font-size: 20px; flex-shrink: 0; }

.toast.hide {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0)     scale(1);   }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0)      scale(1);   }
    to   { opacity: 0; transform: translateY(-15px)  scale(0.9); }
}

/* ===== Confirm Modal ===== */
.confirm-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    padding: 20px;
    box-sizing: border-box;
}
.confirm-overlay.active { display: flex; }

.confirm-box {
    background: rgba(255,255,255,0.95);
    border-radius: 24px;
    padding: 32px 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: toastIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
    direction: rtl;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
}

[data-theme="dark"] .confirm-box {
    background: rgba(15,23,42,0.97);
    color: #f8fafc;
}

.confirm-icon { font-size: 48px; margin-bottom: 12px; }
.confirm-box h3 { margin: 0 0 10px; font-size: 20px; font-weight: 900; }
.confirm-box p  { margin: 0 0 24px; font-size: 14px; color: #64748b; line-height: 1.6; }
[data-theme="dark"] .confirm-box p { color: #94a3b8; }

.confirm-btns { display: flex; gap: 12px; justify-content: center; }
.confirm-btns button {
    flex: 1; padding: 12px 20px; border: none; border-radius: 12px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
}
.confirm-btns .btn-ok     { background: linear-gradient(135deg,#0284c7,#0369a1); color:white; }
.confirm-btns .btn-ok.danger { background: linear-gradient(135deg,#ef4444,#dc2626); }
.confirm-btns .btn-cancel { background: #f1f5f9; color: #334155; }
[data-theme="dark"] .confirm-btns .btn-cancel { background:#1e293b; color:#e2e8f0; }
.confirm-btns button:hover { transform: translateY(-2px); }
