/* DentCell / SağlıkCell — ortak uyarı katmanı (bildirim + onay / bilgi / giriş pencereleri) */
#toast-mount { display: none !important; } /* eski telefon içi bildirim alanı */

#dcui-toasts {
  position: fixed; top: 20px; right: 20px; z-index: 2147483000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  width: min(400px, calc(100vw - 32px)); pointer-events: none;
}
.dcui-toast {
  --tone: #2563eb; --tone-bg: rgba(37, 99, 235, .1);
  position: relative; overflow: hidden; pointer-events: auto;
  width: 100%; display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 14px 15px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 0 0 1px rgba(15, 23, 42, .06), 0 12px 32px -8px rgba(15, 23, 42, .22), 0 3px 8px -2px rgba(15, 23, 42, .08);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0f172a; animation: dcuiIn .42s cubic-bezier(.2, 1.1, .3, 1) both;
}
.dcui-toast.t-success { --tone: #059669; --tone-bg: rgba(16, 185, 129, .12); }
.dcui-toast.t-danger  { --tone: #dc2626; --tone-bg: rgba(239, 68, 68, .11); }
.dcui-toast.t-warning { --tone: #d97706; --tone-bg: rgba(245, 158, 11, .14); }
.dcui-toast.t-info    { --tone: #2563eb; --tone-bg: rgba(37, 99, 235, .1); }
.dcui-ic {
  flex: none; width: 36px; height: 36px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tone-bg); color: var(--tone);
}
.dcui-tx { flex: 1; min-width: 0; padding-top: 1px; }
.dcui-tx b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: #0f172a; }
.dcui-tx p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: #475569; word-break: break-word; }
.dcui-x {
  flex: none; width: 26px; height: 26px; margin: -2px -2px 0 0; border: 0; border-radius: 8px;
  background: transparent; color: #94a3b8; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.dcui-x:hover { background: rgba(15, 23, 42, .06); color: #0f172a; }
.dcui-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--tone); opacity: .55; transform-origin: left;
  animation: dcuiBar linear forwards;
}
.dcui-toast.hold .dcui-bar { animation-play-state: paused; }
.dcui-toast.out { animation: dcuiOut .26s ease forwards; }
@keyframes dcuiIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes dcuiOut { to { opacity: 0; transform: translateX(24px) scale(.97); } }
@keyframes dcuiBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 640px) {
  #dcui-toasts { top: calc(10px + env(safe-area-inset-top, 0px)); right: 50%; transform: translateX(50%); width: calc(100vw - 20px); align-items: stretch; }
  .dcui-toast { border-radius: 18px; }
  @keyframes dcuiOut { to { opacity: 0; transform: translateY(-16px) scale(.97); } }
}

/* ---------------------------------------------------------------- pencereler */
.dcui-dlg-wrap {
  position: fixed; inset: 0; z-index: 2147483100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 23, 42, .42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: dcuiFade .2s ease both;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.dcui-dlg-wrap.out { animation: dcuiFadeOut .2s ease forwards; }
.dcui-dlg {
  width: min(420px, 100%); background: #fff; border-radius: 22px; padding: 26px 24px 20px; text-align: center;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .05), 0 30px 70px -20px rgba(15, 23, 42, .45);
  animation: dcuiPop .32s cubic-bezier(.2, 1.15, .3, 1) both; color: #0f172a;
}
.dcui-dlg-wrap.out .dcui-dlg { animation: dcuiPopOut .2s ease forwards; }
.dcui-dlg-ic {
  width: 54px; height: 54px; border-radius: 17px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.dcui-dlg-ic.t-question, .dcui-dlg-ic.t-info { background: linear-gradient(160deg, rgba(37, 99, 235, .14), rgba(13, 148, 136, .12)); color: #2563eb; }
.dcui-dlg-ic.t-danger { background: rgba(239, 68, 68, .11); color: #dc2626; }
.dcui-dlg h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.dcui-dlg p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: #475569; }
.dcui-in {
  display: block; width: 100%; margin-top: 16px; padding: 12px 14px; box-sizing: border-box;
  border: 1.5px solid #e2e8f0; border-radius: 12px; background: #f8fafc;
  font: inherit; font-size: 15px; color: #0f172a; text-align: left; resize: vertical; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.dcui-in:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.dcui-acts { display: flex; gap: 10px; margin-top: 22px; }
.dcui-btn {
  flex: 1; min-height: 46px; padding: 0 16px; border: 0; border-radius: 13px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  transition: transform .15s, box-shadow .15s, background .15s, filter .15s;
}
.dcui-btn:active { transform: scale(.97); }
.dcui-btn:focus { outline: none; }
.dcui-btn:focus-visible { outline: 2px solid rgba(37, 99, 235, .3); outline-offset: 2px; }
.dcui-btn.ghost { background: #f1f5f9; color: #334155; }
.dcui-btn.ghost:hover { background: #e2e8f0; }
.dcui-btn.pri { background: linear-gradient(180deg, #2563eb, #1e40af); color: #fff; box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .8); }
.dcui-btn.pri:hover { filter: brightness(1.07); }
.dcui-btn.red { background: linear-gradient(180deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 8px 18px -8px rgba(220, 38, 38, .75); }
.dcui-btn.red:hover { filter: brightness(1.06); }
@keyframes dcuiFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dcuiFadeOut { to { opacity: 0; } }
@keyframes dcuiPop { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes dcuiPopOut { to { opacity: 0; transform: scale(.96); } }

@media (max-width: 520px) {
  .dcui-dlg-wrap { align-items: flex-end; padding: 0; }
  .dcui-dlg { width: 100%; border-radius: 24px 24px 0 0; padding: 24px 20px calc(18px + env(safe-area-inset-bottom, 0px)); animation-name: dcuiSheet; }
  .dcui-dlg-wrap.out .dcui-dlg { animation: dcuiSheetOut .2s ease forwards; }
  .dcui-acts { flex-direction: column-reverse; }
  @keyframes dcuiSheet { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes dcuiSheetOut { to { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) { .dcui-toast, .dcui-dlg, .dcui-dlg-wrap { animation: none !important; } }
