/* Smart calendar notification widget — comprehensive package only */
.smart-reminder-toggle{position:fixed;right:22px;bottom:22px;z-index:12062;border:0;border-radius:18px;min-width:142px;height:56px;padding:0 17px;display:flex;align-items:center;justify-content:center;gap:9px;font-family:"Cairo","Segoe UI",Tahoma,sans-serif;font-weight:900;font-size:.82rem;color:#fff;cursor:pointer;background:linear-gradient(135deg,#7c3aed,#2563eb);box-shadow:0 18px 42px rgba(79,70,229,.28);transition:.2s}
.smart-reminder-toggle:hover{transform:translateY(-2px);box-shadow:0 22px 48px rgba(79,70,229,.35)}.smart-reminder-toggle b{position:absolute;top:-7px;left:-7px;min-width:24px;height:24px;padding:0 5px;border-radius:999px;display:grid;place-items:center;background:#ef4444;color:#fff;border:3px solid #fff;font-size:.64rem}.smart-reminder-bell{font-size:1.15rem}.smart-reminder-hidden{display:none!important}
.smart-reminder-panel[hidden]{display:none!important}.smart-reminder-panel{position:fixed;right:22px;bottom:90px;z-index:12061;width:min(430px,calc(100vw - 28px));height:min(610px,calc(100vh - 120px));display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #dbe3f0;border-radius:24px;box-shadow:0 28px 85px rgba(30,41,59,.30);font-family:"Cairo","Segoe UI",Tahoma,sans-serif;color:#172033}
.smart-reminder-panel>header{padding:15px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px;background:linear-gradient(135deg,#6d28d9,#1d4ed8);color:#fff}.smart-reminder-panel>header span,.smart-reminder-panel>header strong,.smart-reminder-panel>header small{display:block}.smart-reminder-panel>header span{font-size:.62rem;color:#ddd6fe;font-weight:800}.smart-reminder-panel>header strong{font-size:.92rem}.smart-reminder-panel>header small{font-size:.61rem;color:rgba(255,255,255,.75);margin-top:2px}.smart-reminder-panel>header button{width:35px;height:35px;border:1px solid rgba(255,255,255,.2);border-radius:11px;background:rgba(255,255,255,.1);color:#fff;font-size:1rem;cursor:pointer}
.smart-reminder-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:10px;background:#f8f9ff;border-bottom:1px solid #e8eaf5}.smart-reminder-summary span{background:#fff;border:1px solid #e6e8f1;border-radius:12px;padding:7px;text-align:center;font-size:.61rem;color:#64748b}.smart-reminder-summary b{display:block;font-size:1rem;color:#4338ca}
.smart-reminder-list{flex:1;overflow:auto;padding:11px;background:#f8fafc;display:flex;flex-direction:column;gap:8px}.smart-reminder-item{display:grid;grid-template-columns:5px 1fr;gap:10px;background:#fff;border:1px solid #e2e8f0;border-radius:15px;padding:10px;box-shadow:0 4px 14px rgba(30,41,59,.04)}.smart-reminder-item.unread{border-color:#c7d2fe;box-shadow:0 5px 18px rgba(79,70,229,.08)}.smart-reminder-priority{border-radius:999px;background:#94a3b8}.smart-reminder-item.high .smart-reminder-priority{background:#f59e0b}.smart-reminder-item.critical .smart-reminder-priority{background:#ef4444}.smart-reminder-item span{display:block;font-size:.78rem;font-weight:900;color:#1e293b}.smart-reminder-item p{margin:4px 0;color:#526174;font-size:.68rem;line-height:1.7}.smart-reminder-item small{font-size:.58rem;color:#8a98a8}.smart-reminder-actions{display:flex;gap:6px;margin-top:7px}.smart-reminder-actions button{border:1px solid #dbe2ea;background:#fff;color:#475569;border-radius:9px;padding:5px 8px;font-family:inherit;font-size:.59rem;font-weight:800;cursor:pointer}.smart-reminder-actions button:first-child{background:#eef2ff;color:#4338ca;border-color:#d8dcff}.smart-reminder-empty{margin:auto;text-align:center;color:#64748b;max-width:280px;line-height:1.8}.smart-reminder-empty b{display:block;color:#334155;margin-bottom:4px}.smart-reminder-empty span{font-size:.72rem}
.smart-reminder-panel>footer{padding:10px 12px;background:#fff;border-top:1px solid #e2e8f0;display:flex;gap:8px}.smart-reminder-panel>footer a,.smart-reminder-panel>footer button{flex:1;border:0;border-radius:11px;padding:9px 10px;text-decoration:none;text-align:center;font-family:inherit;font-weight:900;font-size:.68rem;cursor:pointer}.smart-reminder-panel>footer a{background:#4f46e5;color:#fff}.smart-reminder-panel>footer button{background:#eef2f7;color:#475569}
@media(max-width:600px){.smart-reminder-toggle{right:13px;bottom:13px;min-width:56px;width:56px;padding:0;border-radius:50%}.smart-reminder-label{display:none}.smart-reminder-panel{right:8px;bottom:78px;width:calc(100vw - 16px);height:min(650px,calc(100vh - 90px));border-radius:19px}}
@media print{.smart-reminder-toggle,.smart-reminder-panel{display:none!important}}

/* V19.0.4 — global in-app notification toasts on every platform page */
.smart-reminder-panel>footer{display:grid;grid-template-columns:1.35fr .75fr .9fr}
.smart-reminder-toast-host{position:fixed;top:18px;right:18px;z-index:12070;width:min(390px,calc(100vw - 30px));display:flex;flex-direction:column;gap:10px;pointer-events:none;font-family:"Cairo","Segoe UI",Tahoma,sans-serif;direction:rtl}
.smart-reminder-toast{pointer-events:auto;display:grid;grid-template-columns:36px 1fr;gap:10px;position:relative;padding:13px 14px 12px;background:#fff;border:1px solid #dbe3f0;border-right:5px solid #f59e0b;border-radius:17px;box-shadow:0 22px 60px rgba(15,23,42,.22);transform:translateY(-10px);opacity:0;transition:opacity .24s ease,transform .24s ease;color:#172033}
.smart-reminder-toast.show{transform:translateY(0);opacity:1}.smart-reminder-toast.critical{border-right-color:#ef4444}.smart-reminder-toast.high{border-right-color:#f59e0b}.smart-reminder-toast.normal{border-right-color:#4f46e5}
.smart-reminder-toast-icon{width:34px;height:34px;border-radius:11px;background:#eef2ff;display:grid;place-items:center;font-size:1rem}.smart-reminder-toast strong{display:block;font-size:.79rem;font-weight:900;padding-left:22px}.smart-reminder-toast p{margin:4px 0 8px;color:#536174;font-size:.67rem;line-height:1.65}.smart-reminder-toast>div:last-child>div{display:flex;gap:7px;align-items:center}.smart-reminder-toast-open,.smart-reminder-toast a{border:0;border-radius:9px;padding:6px 9px;font-family:inherit;font-size:.59rem;font-weight:900;text-decoration:none;cursor:pointer}.smart-reminder-toast-open{background:#4f46e5;color:#fff}.smart-reminder-toast a{background:#eef2f7;color:#475569}.smart-reminder-toast-close{position:absolute;left:8px;top:8px;width:25px;height:25px;border:0;border-radius:8px;background:#f1f5f9;color:#64748b;cursor:pointer;font-size:.85rem}
@media(max-width:600px){.smart-reminder-toast-host{top:10px;right:8px;width:calc(100vw - 16px)}.smart-reminder-panel>footer{grid-template-columns:1fr 1fr}.smart-reminder-panel>footer a{grid-column:1/-1}.smart-reminder-toast{border-radius:14px}}
@media print{.smart-reminder-toast-host{display:none!important}}


/* V19.0.8 — nearest reminder lives inside the bell panel; no persistent card */
.smart-reminder-next{padding:10px;background:#f8fafc;border-bottom:1px solid #e8eaf5;display:grid;grid-template-columns:1fr 1fr;gap:8px}.smart-reminder-next-block{background:linear-gradient(145deg,#eef2ff,#fff);border:1px solid #dfe3ff;border-radius:14px;padding:10px}.smart-reminder-next-block.occasion{background:linear-gradient(145deg,#ecfdf5,#fff);border-color:#ccefe2}.smart-reminder-next-block>span{display:block;font-size:.57rem;font-weight:900;color:#4f46e5}.smart-reminder-next-block.occasion>span{color:#0f766e}.smart-reminder-next-block strong{display:block;margin-top:3px;font-size:.7rem;font-weight:900;color:#1e293b;line-height:1.5}.smart-reminder-next-block p{margin:4px 0;font-size:.59rem;color:#64748b;line-height:1.55}.smart-reminder-next-block small{font-size:.55rem;font-weight:800;color:#64748b}
@media(max-width:600px){.smart-reminder-next{grid-template-columns:1fr}.smart-reminder-panel{bottom:78px}.smart-reminder-panel:not([hidden])~.smart-reminder-toast-host{display:none}}
@media print{.smart-reminder-next{display:none!important}}

.smart-reminder-toast-occasion{display:block;margin:-2px 0 8px;padding:6px 8px;border-radius:9px;background:#ecfdf5;color:#0f766e;font-size:.58rem;font-weight:800;line-height:1.5}


/* V19.0.9 — keep notification surfaces above the unified service header (z-index 10020). */
.smart-reminder-toggle{z-index:12062!important}
.smart-reminder-panel{z-index:12061!important}
.smart-reminder-toast-host{z-index:12070!important}
