﻿/* رسالة التأكيد (fsConfirm) ومؤشر الحفظ — كانت بتتحقن من JS وبتضيع مع التنقل بين الشاشات */
#fs-save-ind {
  position: fixed;   bottom: 90px; left: 50%;   transform: translateX(-50%) translateY(100px);   background: #fff; color: #1f2937;   padding: 10px 18px;   border-radius: 999px;   box-shadow: 0 8px 24px rgba(0,0,0,.18);   font-size: 13px; font-weight: 700;   display: flex; align-items: center; gap: 8px;   z-index: 100008;   transition: transform .25s ease;   pointer-events: none;   border: 1px solid #e2e8f0; }
#fs-save-ind.show { transform: translateX(-50%) translateY(0); }
#fs-save-ind.saved { color: #16a34a; border-color: #86efac; }
#fs-save-ind.error { color: #dc2626; border-color: #fca5a5; }
.fs-save-spinner {
  width: 14px; height: 14px;   border: 2px solid #e2e8f0;   border-top-color: var(--fs-primary);   border-radius: 50%;   animation: fs-save-spin .7s linear infinite; }
@keyframes fs-save-spin { to { transform: rotate(360deg); } }
#fs-confirm-mask {
  position: fixed; inset: 0;   background: rgba(0,0,0,.55);   z-index: 100020;   display: none;   align-items: center; justify-content: center;   padding: 20px;   backdrop-filter: blur(2px); }
#fs-confirm-mask.show { display: flex; }
.fs-confirm-box {
  background: #fff;   border-radius: 14px;   padding: 22px 20px 16px;   width: min(380px, 100%);   text-align: center;   box-shadow: 0 20px 60px rgba(0,0,0,.35);   animation: fs-confirm-in .2s ease-out both; }
@keyframes fs-confirm-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.fs-confirm-icon {
  width: 50px; height: 50px;   border-radius: 50%;   background: linear-gradient(135deg, #fef3c7, #fde68a);   color: #d97706;   display: flex; align-items: center; justify-content: center;   margin: 0 auto 12px; font-size: 24px; }
.fs-confirm-icon.danger { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; }
.fs-confirm-title { font-size: 16px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.fs-confirm-msg { font-size: 14px; color: #64748b; margin-bottom: 16px; line-height: 1.5; }
.fs-confirm-btns { display: flex; gap: 8px; }
.fs-confirm-btns button {
  flex: 1; padding: 11px;   border-radius: 10px; font-size: 14px; font-weight: 700;   cursor: pointer; border: none; }
.fs-confirm-cancel { background: #f1f5f9; color: #64748b; }
.fs-confirm-ok { background: linear-gradient(135deg, var(--fs-primary), var(--fs-primary-deep)); color: #fff; }
.fs-confirm-ok.danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
html.dark-mode .fs-confirm-box { background: #1e293b; }
html.dark-mode .fs-confirm-title { color: #f1f5f9; }
html.dark-mode .fs-confirm-msg { color: #94a3b8; }
html.dark-mode .fs-confirm-cancel { background: #334155; color: #cbd5e1; }
