/* Search icon animation */
.filterbar__search{
  position: relative;
  transition: background .2s ease;
}

/* default (idle) */
.filterbar__icon{
  font-size: 24px;              /* büyük */
  opacity: .65;
  transition:
    transform .2s ease,
    font-size .2s ease,
    opacity .2s ease;
  pointer-events: none;         /* tıklama inputa geçsin */
}

/* active typing state */
.filterbar__search.is-active .filterbar__icon{
  font-size: 14px;              /* küçül */
  opacity: .45;
  transform: translateY(-1px);
}

/* input biraz daha netleşsin */
.filterbar__search.is-active{
  background: rgba(255,255,255,.05);
}

/* Filterbar form satırı paneli taşıyabilsin */
.filterbar__row{
  flex-wrap: wrap;
}

/* Panel mutlaka alt satıra insin ve tam genişlik olsun */
.filterpanel{
  flex: 0 0 100%;
  width: 100%;
}

/* (İsteğe bağlı) Panel açılınca satır aralığı daha iyi */
.filterbar.is-panel-open .filterpanel{
  margin-top: 10px;
}

/* ============================== */
/* FILTER BAR BUTTONS – FIX       */
/* ============================== */

.filterbar__btn,
.filterbar__apply {
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all .18s ease;
}

/* Filtre (secondary / soft) */
.filterbar__btn {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.10);
}

.filterbar__btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* aktif filtre varsa (nokta varken) */
.filterbar__btn .filterbar__dot {
  background: #4f8cff;
}

/* Uygula (primary ama bağırmayan) */
.filterbar__apply {
  background: linear-gradient(
    180deg,
    rgba(90,140,255,.95),
    rgba(60,110,230,.95)
  );
  color: #fff;
  border: 1px solid rgba(90,140,255,.9);
  box-shadow:
    0 6px 14px rgba(60,110,230,.35),
    inset 0 1px 0 rgba(255,255,255,.25);
}

.filterbar__apply:hover {
  filter: brightness(1.05);
}

/* Disabled gibi soluk görünmemesi için */
.filterbar__apply:disabled,
.filterbar__btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ============================= */
/* FILTER BAR – FONT & COLOR FIX */
/* ============================= */

.filterbar,
.filterbar * {
  color: rgba(255,255,255,.92);
  font-family: inherit;
}

/* Arama input */
.filterbar__input {
  background: transparent;
  color: rgba(255,255,255,.95);
}

.filterbar__input::placeholder {
  color: rgba(255,255,255,.45);
}

/* Filtre / Uygula butonları */
.filterbar__btn,
.filterbar__apply {
  color: rgba(255,255,255,.9);
  font-weight: 500;
}

/* Açılır panel */
.filterpanel {
  background: #0f131a;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
}

/* Panel başlıkları */
.filterpanel__label {
  color: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Chip’ler */
.chip {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 500;
}

.chip:hover {
  background: rgba(255,255,255,.12);
}

.chip.is-on {
  background: rgba(70,120,255,.25);
  border-color: rgba(70,120,255,.45);
  color: #fff;
}

/* Sıfırla linki */
.filterbar__clear {
  color: rgba(255,255,255,.5);
}

.filterbar__clear:hover {
  color: rgba(255,255,255,.85);
}



/* Aksiyon satırını aynı hizada tut */
.patientactions--v2 .actrow--icons{
  display:flex;
  align-items:center;   /* dikey ortalama */
  gap:10px;
}

/* Hatırlatma butonu satırla aynı hizada olsun */
.patientactions--v2{
  display:flex;
  align-items:center;   /* ikonlar + pill aynı baseline yerine merkez */
  justify-content:space-between;
  gap:12px;
}

.patientactions--v2 .actrow--icons{
  flex:0 0 auto;
}

.patientactions--v2 .reminderlink{
  margin-top:0 !important;        /* önceki margin-top'ı iptal */
  height:46px;                    /* ikon buton yüksekliği ile aynı */
  display:flex;
  align-items:center;             /* text dikey ortalı */
  justify-content:center;
  padding:0 16px;
  white-space:nowrap;
}

/* Kopyala SVG’si optik merkez düzeltme (1px aşağı) */
.patientactions--v2 button.iconact .iconact__ico{
  display:block;
}

.patientactions--v2 button.iconact .iconact__ico{
  transform: translateY(1px);
}

/* SADECE kopyala butonuna uygulamak istersen (daha temiz): 
   Kopyala butonuna class ekle -> class="iconact iconact--copy"
   ve aşağıyı kullan:
*/
/*
.iconact--copy .iconact__ico{ transform: translateY(1px); }
*/



/* Actions alanını karttan ayır */
.patientactions--icons{
  margin-top:14px;
  padding-top:12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* 4 ikonun arkasında tek bar */
.patientactions--icons .actrow{
  display:flex;
  gap:10px;
  align-items:center;

  padding:10px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  box-shadow: 0 16px 40px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
}

/* Butonlar artık bar içinde “flat” */
.patientactions--icons .iconact{
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:14px;

  border:1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  box-shadow: none;

  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}

.patientactions--icons .iconact:hover{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
}

.patientactions--icons .iconact:active{
  transform: translateY(1px) scale(.98);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

.patientactions--icons .iconact__ico{
  width:20px;
  height:20px;
  fill: rgba(255,255,255,.92);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
}

/* Çok küçük ekranlarda sıkışmayı önle */
@media (max-width: 380px){
  .patientactions--icons .actrow{ gap:8px; padding:9px; }
  .patientactions--icons .iconact{ width:44px; height:44px; flex:0 0 44px; }
}


/* Follow-up badge (Model B) */

/*

.badge--fu {
  font-size: 12px;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}


.fu--gray {
  color: #6b7280;
}

.fu--orange {
  color: #f97316; 
}

.fu--yellow {
  color: #eab308; 
}

.fu--green {
  color: #22c55e; 
}

*/

/* Follow-up badge (Model B) */
.badge.badge--fu{
  font-size:12px;
  letter-spacing:1px;
  padding:2px 6px;
  border-radius:10px;
  background: rgba(255,255,255,0.04);
}

/* Renkleri EZDİR (spesifik) */
.badge.badge--fu.fu--gray   { color:#6b7280 !important; }
.badge.badge--fu.fu--orange { color:#f97316 !important; }
.badge.badge--fu.fu--yellow { color:#eab308 !important; }
.badge.badge--fu.fu--green  { color:#22c55e !important; }


/*
.badge--fu{
  display:inline-flex;
  align-items:center;
  font-size:12px;
  letter-spacing:2px;
  opacity:.9;
  user-select:none;
}
.badge--fu { color: var(--accent); }

.fu__label{
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.8;
}

.fu__dots{
  font-size:12px;
  letter-spacing:2px;
  line-height:1;
}
 */

/* iOS Safari input focus zoom fix */
html {
  -webkit-text-size-adjust: 100%;
}

/* iOS: 16px altındaki inputlarda zoom yapar -> 16px yap */
input, select, textarea, button {
  font-size: 16px;
}

/* UI stabilitesi: form elemanlarının genişliği taşmasın */
.input, .select, textarea {
  width: 100%;
  max-width: 100%;
}

/* Özellikle modal/form grid içinde mobilde kaymayı engelle */
.formgrid input,
.formgrid select,
.formgrid textarea {
  font-size: 16px;
}


.nav__link.is-active {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
}

.topbar {
  height: 56px;
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
}


/* Toast */
.toast{
  opacity:0;
  pointer-events:none;
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,12,16,.85);
  padding:10px 14px;
  border-radius: 14px;
  color: rgba(255,255,255,.9);
  z-index:60;
}
.toast.is-on{ opacity:1; }

/* Patient actions: 4 item */
.patientactions{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr 120px 140px auto;
  gap:10px;
  align-items:stretch;
}
.patientactions .btn{ height:44px; }
.btn--flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.btn--flex .muted.small{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 180px;
}

.pick{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}
.pick__cb{ width:18px; height:18px; }
.pick__txt{ font-size:12px; color: rgba(255,255,255,.65); }

@media (max-width: 640px){
  .patientactions{ grid-template-columns: 1fr 1fr; }
  .patientactions .btn--flex{ grid-column: 1 / -1; }
  .pick{ grid-column: 1 / -1; justify-content:center; }
}

/* Modals */
.modal{ position:fixed; inset:0; display:none; z-index:50; }
.modal.is-on{ display:block; }
.modal__backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.55); }
.modal__panel{
  position:absolute; left:50%; top:50%;
  transform: translate(-50%,-50%);
  width:min(520px, calc(100% - 24px));
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,12,16,.92);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.modal__head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.modal__title{ font-weight:800; }
.iconbtn{
  width:40px; height:40px; border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.9);
  cursor:pointer;
}
.modal__body{ padding:14px; display:grid; gap:10px; }
.modal__foot{ margin-top:10px; }

/* Sticky bar */
.stickybar{
  position: sticky;
  bottom: 10px;
  margin-top: 12px;
  z-index: 5;
}


:root{
  --bg:#0f1216;
  --surface:#151a21;
  --surface2:#11161c;
  --border:#232a34;
  --text:#e6e9ef;
  --muted:#9aa3af;

  --radius:14px;
  --shadow: 0 10px 24px rgba(0,0,0,.35);

  /* accent vars will be set by accent-*.css */
  --accent:#4aa3ff;
  --accent2:#2d86e6;
  --ring: rgba(74,163,255,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.9; }

.app{ min-height:100%; }

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(15,18,22,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.topbar__inner{
  max-width:1080px;
  margin:0 auto;
  padding:12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  font-weight:700;
  letter-spacing:.3px;
}
.nav{ display:flex; gap:10px; }
.nav__link{
  padding:10px 12px;
  border-radius:10px;
  color:var(--muted);
}
.nav__link:hover{
  background: rgba(255,255,255,.04);
  color: var(--text);
}

.container{
  max-width:1080px;
  margin:0 auto;
  padding:16px;
}

.pagehead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 12px 0 14px;
}
.h1{
  margin:0;
  font-size:20px;
  line-height:1.2;
}
.label{
  display:block;
  margin:12px 0 6px;
  color:var(--muted);
  font-size:13px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}

.card--narrow{
  max-width: 420px;
  margin: 20px auto;
}

.input{
  width:100%;
  height:44px;
  padding:0 12px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  outline:none;
}
.input:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}

.btn{
  height:44px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.btn:hover{ background: rgba(255,255,255,.05); }
.btn--primary{
  border-color: rgba(255,255,255,.06);
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #071018;
  font-weight: 700;
}
.btn--block{ width:100%; }

.alert{
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  margin: 10px 0 6px;
}
.alert--error{
  border-color: rgba(255,74,74,.35);
  background: rgba(255,74,74,.08);
}

.muted{ color: var(--muted); }
.mt-12{ margin-top:12px; }

/* Mobile-first */
@media (max-width: 640px){
  .container{ padding: 12px; }
  .topbar__inner{ padding: 10px 12px; }
  .nav__link{ padding: 10px 10px; }
}

.h2{ margin:0 0 10px; font-size:16px; color:var(--text); }

.spacer{ height:14px; }

.formgrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.formgrid__full{ grid-column: 1 / -1; }

.patientlist{
  display:grid;
  gap:12px;
}
.patientcard{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
}
.patientcard__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.patientname{ font-weight:700; }

.badge{
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  font-size:12px;
  color: var(--muted);
}
.pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.05);
  color: var(--text);
  font-size:12px;
}
.patientmeta{ margin-top:10px; display:grid; gap:8px; }
.small{ font-size:12px; }

.patientactions{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr 110px 140px;
  gap:10px;
  align-items:center;
}
.btn--ghost{
  background: rgba(255,255,255,.02);
}
.btn--flex{
  justify-content:space-between;
  width:100%;
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(21,26,33,.92);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.toast.is-on{ opacity: 1; }

@media (max-width: 640px){
  .formgrid{ grid-template-columns: 1fr; }
  .patientactions{
    grid-template-columns: 1fr 1fr 1fr;
  }
  .btn--flex{
    flex-direction:column;
    gap:4px;
    align-items:flex-start;
  }
}

.patientlist{ display:grid; gap:12px; }

.patientcard{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
}

.patientcard__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.patientname{ font-weight:700; }

.patientmeta{ margin-top:10px; display:grid; gap:8px; }

.small{ font-size:12px; }

.patientactions{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr 120px 140px;
  gap:10px;
  align-items:stretch;
}

.patientactions .btn{
  height:44px;
}

.btn--flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.btn--flex .muted.small{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 160px;
}


.btn--ghost{ background: rgba(255,255,255,.02); }

.btn--flex{
  justify-content:space-between;
  width:100%;
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(21,26,33,.92);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.toast.is-on{ opacity: 1; }

@media (max-width: 640px){
  .patientactions{ grid-template-columns: 1fr 1fr; }
  .btn--flex{ flex-direction:column; gap:4px; align-items:flex-start; }
}

.patientmeta{ margin-top:10px; display:grid; gap:10px; }

.meta{
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.015);
  border-radius: 12px;
  padding: 10px 12px;
  display:grid;
  gap:6px;
}

.meta__k{
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .2px;
}

.meta__v{
  font-size: 13px;
  color: var(--text);
  line-height: 1.35;
}

/* Patient actions now has 4 items (Ara/Kopyala/Hat覺rlatma/Pick) */
.patientactions{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr 120px 140px auto;
  gap:10px;
  align-items:stretch;
}
.patientactions .btn{ height:44px; }
.pick{
  display:flex; align-items:center; gap:8px;
  padding: 10px 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}
.pick__cb{ width:18px; height:18px; }
.pick__txt{ font-size:12px; color: var(--muted); }

@media (max-width: 640px){
  .patientactions{ grid-template-columns: 1fr 1fr; }
  .patientactions .btn--flex{ grid-column: 1 / -1; }
  .pick{ grid-column: 1 / -1; justify-content:center; }
}

/* Modal */
.modal{ position:fixed; inset:0; display:none; z-index:30; }
.modal.is-on{ display:block; }
.modal__backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.55); }
.modal__panel{
  position:absolute; left:50%; top:50%;
  transform: translate(-50%,-50%);
  width:min(520px, calc(100% - 24px));
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.modal__head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px; border-bottom:1px solid var(--border);
}
.modal__title{ font-weight:800; }
.iconbtn{
  width:40px; height:40px; border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text); cursor:pointer;
}
.modal__body{ padding:14px; display:grid; gap:10px; }
.modal__foot{ margin-top:10px; }

.stickybar{ position: sticky; bottom: 10px; margin-top: 12px; z-index: 5; }

/* Reminders */
.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }
@media (max-width: 640px){ .grid3{ grid-template-columns: 1fr; } }

.kpi{ display:flex; align-items:baseline; justify-content:space-between; }
.kpi__n{ font-size:22px; font-weight:900; }
.kpi__t{ font-size:12px; }

.listtitle{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }

.rlist{ display:grid; gap:10px; }
.ritem{
  border:1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  padding:12px;
}
.ritem--danger{ border-color: rgba(255,74,74,.22); }
.ritem--accent{ border-color: rgba(255,255,255,.10); }
.ritem--neutral{ border-color: rgba(255,255,255,.08); }

.ritem__top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.ritem__actions{ margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; }
.inlineform{ display:inline; }

.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:50;
}
.modal.hidden{ display:none; }

.modal-box{
  width:100%;
  max-width:420px;
  background:#0f141a;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:20px;
  display:grid;
  gap:12px;
}
.modal-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

/* Modal default kapalı */
.modal{
  display:none !important;
}

/* Sadece JS açınca görünür */
.modal.is-on{
  display:block !important;
}

/* Backdrop + panel zaten sende varsa dokunma, yoksa kalsın */
.modal__backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
}

.modal__panel{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}

.nav__bell{ position:relative; display:inline-flex; align-items:center; gap:8px; }
.bellbadge{
  display:none;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
  text-align:center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}
.bellbadge.is-on{ display:inline-block; }
.bellbadge.is-urgent{
  border-color: rgba(255,74,74,.35);
  background: rgba(255,74,74,.12);
}

.nav__bell{ position:relative; display:inline-flex; align-items:center; gap:8px; }
.bellbadge{
  display:none;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
  text-align:center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}
.bellbadge.is-on{ display:inline-block; }

#bellOverdue.is-on{
  border-color: rgba(255,74,74,.35);
  background: rgba(255,74,74,.12);
}

.nav__link.is-active {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
}

.btn.is-disabled {
  opacity: .6;
  pointer-events: none;
}

/* message spacing (inline css kalktı) */
.ritem__msg { margin-top: 8px; }

/* swipe base */
.reminder-card{
  position: relative;
  transition: transform .18s ease, background .18s ease;
  will-change: transform;
  touch-action: pan-y;
  overflow: hidden;
}

/* swipe hint */
.reminder-card .swipe-hint{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.reminder-card .hint-right{ left: 12px; }
.reminder-card .hint-left{ right: 12px; }

.reminder-card.is-dragging .swipe-hint{ opacity: .85; }

.reminder-card.swipe-right{
  background: rgba(16, 185, 129, .12);
}
.reminder-card.swipe-left{
  background: rgba(245, 158, 11, .12);
}

/* iOS Safari input focus zoom fix */
html {
  -webkit-text-size-adjust: 100%;
}

/* iOS: 16px altındaki inputlarda zoom yapar -> 16px yap */
input, select, textarea, button {
  font-size: 16px;
}

/* UI stabilitesi: form elemanlarının genişliği taşmasın */
.input, .select, textarea {
  width: 100%;
  max-width: 100%;
}

/* Özellikle modal/form grid içinde mobilde kaymayı engelle */
.formgrid input,
.formgrid select,
.formgrid textarea {
  font-size: 16px;
}


.pick__cb--hidden{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}


/* Kırpılmayı kesin çözer */
.patientactions--icons .iconact{
  overflow: visible !important;   /* taşan svg kesilmesin */
}

/* Eğer parent bir yerde overflow hidden ise onu da aç */
.patientactions--icons .actrow{
  overflow: visible !important;
}

/* SVG hizalama + kırpılmayı azalt */
.patientactions--icons .iconact__ico{
  display:block;
  overflow: visible;
  filter: none !important;        /* drop-shadow kırpıyordu */
}

/* İkonu tam ortala (bazı svg path’leri kayık durabiliyor) */
.patientactions--icons .iconact{
  display:flex;
  align-items:center;
  justify-content:center;
}


/* V2 actions: iki satır */
.patientactions--v2{
  margin-top:14px;
  padding-top:12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Üst satır ikonlar */
.patientactions--v2 .actrow--icons{
  display:flex;
  gap:10px;
  align-items:center;
}

/* ikon buton */
.patientactions--v2 .iconact{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  text-decoration:none;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}

.patientactions--v2 .iconact:active{
  transform: translateY(1px) scale(.98);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
}

.patientactions--v2 .iconact__ico{
  width:20px;
  height:20px;
  fill: rgba(255,255,255,.90);
}

/* WhatsApp logosu biraz daha net dursun */
.patientactions--v2 .iconact__ico--wa{
  width:22px;
  height:22px;
  fill: rgba(255,255,255,.92);
}

/* Alt satır: reminder text link */
.reminderlink{
  margin-top:10px;
  width:100%;
  text-align:left;

  padding:10px 12px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.02);

  color: rgba(255,255,255,.86);
  cursor:pointer;
}

.reminderlink:hover{
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.22);
}

.reminderlink__arrow{
  opacity:.7;
  margin-left:6px;
}


/* yeni deneme sıcak data     */
/* Top row alignment: name left, badges always right */
.patientcard__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.patientname{
  min-width:0;               /* uzun isim taşmasın */
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.badges{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;             /* sağ grup sabit kalsın */
}

/* Heat emoji baseline */
.heat{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  font-size:18px;
}

/* Pulse only for HOT */
.heat--hot{
  animation: heatPulse 1.2s ease-in-out infinite;
  transform-origin:center;
}

@keyframes heatPulse{
  0%,100% { transform: scale(1);   filter: saturate(1); }
  50%     { transform: scale(1.12); filter: saturate(1.2); }
}



/* Compact filter bar */
.filterbar{ margin: 10px 0; }
.filterbar__row{
  display:flex; align-items:center; gap:10px;
}
.filterbar__search{
  flex:1; min-width:0;
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background: rgba(255,255,255,.03);
}
.filterbar__icon{ opacity:.6; font-size:25px; }
.filterbar__input{
  flex:1; min-width:0;
  background:transparent; border:0; outline:0;
}
.filterbar__clear{
  font-size:12px; opacity:.7; text-decoration:none;
}
.filterbar__btn, .filterbar__apply{
  flex:0 0 auto;
  border-radius:14px;
}
.filterbar__dot{
  display:inline-block; width:8px; height:8px; border-radius:999px;
  margin-left:8px;
  background: currentColor;
}

/* Panel */
.filterpanel{
  margin-top:10px;
  padding:12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background: rgba(255,255,255,.02);
}
.filterpanel__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.filterpanel__label{ font-size:12px; opacity:.7; margin-bottom:6px; }

/* Chips */
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
}
.chip.is-on{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
}

/* Desktop: panel groups side-by-side */
@media (min-width: 900px){
  .filterpanel__grid{ grid-template-columns: 1fr 1fr 1fr; }
}


/* ============================== */
/* FILTERBAR – FINAL (PRO)        */
/* ============================== */

/* Row */
.filterbar { margin: 10px 0; position: relative; }
.filterbar__row{ display:flex; align-items:center; gap:10px; }

/* Search */
.filterbar__search{
  flex:1; min-width:0;
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background: rgba(255,255,255,.03);
}

.filterbar__input{
  flex:1; min-width:0;
  background:transparent; border:0; outline:0;
  color: rgba(255,255,255,.92);
  font-size:16px; /* iOS zoom fix */
}
.filterbar__input::placeholder{ color: rgba(255,255,255,.45); }
.filterbar__clear{ font-size:12px; opacity:.75; }
.filterbar__clear:hover{ opacity:.95; }

/* Buttons (base) */
.filterbar__btn,
.filterbar__apply{
  height:44px;
  padding:0 16px;
  border-radius:14px;
  font-size:14px;
  font-weight:700;
  letter-spacing:.01em;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  cursor:pointer;
  transition: transform .08s ease, filter .18s ease, background .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.filterbar__btn:active,
.filterbar__apply:active{ transform: translateY(1px) scale(.99); }

/* Filtre (secondary) */
.filterbar__btn{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.10);
}
.filterbar__btn:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.14);
  color:#fff;
}
.filterbar__dot{
  display:inline-block;
  width:8px; height:8px; border-radius:999px;
  margin-left:8px;
  background:#4f8cff;
  box-shadow: 0 0 0 3px rgba(79,140,255,.16);
}

/* Uygula (primary) – ama panel kapalıyken sakla */
.filterbar__apply{
  background: linear-gradient(180deg, rgba(90,140,255,.95), rgba(60,110,230,.95));
  color:#fff;
  border:1px solid rgba(90,140,255,.9);
  box-shadow: 0 6px 14px rgba(60,110,230,.35), inset 0 1px 0 rgba(255,255,255,.25);
  display:none;
}
.filterbar.is-panel-open .filterbar__apply{ display:inline-flex; }
.filterbar__apply:hover{ filter: brightness(1.05); }

/* Panel */
.filterpanel{
  margin-top:10px;
  padding:12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background: #0f131a;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  transform-origin: top;
}
.filterpanel__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
@media (min-width: 900px){
  .filterpanel__grid{ grid-template-columns: 1fr 1fr 1fr; }
}
.filterpanel__label{
  color: rgba(255,255,255,.55);
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  text-transform: uppercase;
  margin-bottom:6px;
}

/* Chips */
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
  font-weight:650;
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}
.chip:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}
.chip:active{ transform: translateY(1px); }
.chip.is-on{
  background: rgba(70,120,255,.25);
  border-color: rgba(70,120,255,.45);
  color:#fff;
}

/* Panel içi Uygula (mobil CTA) – eğer HTML’de eklersen */
.filterpanel__apply{
  display:none;
  margin-top: 12px;
  width:100%;
  height:46px;
  border-radius:14px;
  font-size:14px;
  font-weight:800;
  border:1px solid rgba(90,140,255,.9);
  color:#fff;
  background: linear-gradient(180deg, rgba(90,140,255,.95), rgba(60,110,230,.95));
  box-shadow: 0 6px 14px rgba(60,110,230,.35), inset 0 1px 0 rgba(255,255,255,.25);
}

@media (max-width: 520px){
  .filterbar.is-panel-open .filterbar__apply{ display:none; } /* mobilde üst apply yok */
  .filterpanel__apply{
    display:block; 
    position: sticky;
    bottom: 10px;
  }
}




/* filterbar: panel alt satıra düşsün */
.filterbar__row{ flex-wrap: wrap; }

/* panel tam genişlik + alt satır */
.filterbar .filterpanel{
  flex: 0 0 100%;
  width: 100%;
  order: 99;
}

/* bazı agresif stiller varsa paneli görünür kıl */
.filterbar.is-panel-open .filterpanel{
  display: block;
}








/* FAB (Twitter/X style) */
.fab{
  position: fixed;
  right: 18px;
  bottom: 18px;              /* stickybar varsa aşağıdaki JS ile yukarı alacağız */
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  font-size: 30px;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  z-index: 60;               /* modal 1000’de olabilir; fab her zaman üstte kalsın */
}

/* Bottom sheet modal */
.modal--sheet .modal__panel--sheet{
  width: min(680px, calc(100% - 16px));
  margin: 0 auto 10px auto;
  border-radius: 18px 18px 14px 14px;
  transform: translateY(18px);
}

/* Modal açılma animasyonu (panel alttan gelir) */
.modal[aria-hidden="true"]{ display:none; }
.modal[aria-hidden="false"]{ display:block; }

.modal--sheet[aria-hidden="false"] .modal__panel--sheet{
  animation: sheetIn .18s ease-out both;
}

@keyframes sheetIn{
  from { transform: translateY(22px); opacity: .0; }
  to   { transform: translateY(0);    opacity: 1;  }
}





/* Patient sheet modal force visibility rules */
#patientModal[aria-hidden="true"] { display: none; }
#patientModal[aria-hidden="false"]{ display: block; }

/* Bottom sheet panel (alttan) */
#patientModal .modal__panel--sheet{
  width: min(680px, calc(100% - 16px));
  margin: 0 auto 10px auto;
  border-radius: 18px 18px 14px 14px;
}

#patientModal[aria-hidden="false"] .modal__panel--sheet{
  animation: sheetIn .18s ease-out both;
}

@keyframes sheetIn{
  from { transform: translateY(22px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}



/* FAB must always be clickable */
.fab{
  position: fixed !important;
  right: 18px !important;
      /* stickybar üstüne çıksın */
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  font-size: 30px;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  z-index: 99999 !important;      /* her şeyin üstünde */
  pointer-events: auto !important;
  cursor: pointer !important;
}

.stickybar{
  z-index: 1000;                  /* fab 99999 ile zaten üstte */
}



.modal{
  position: fixed;
  inset: 0;
  z-index: 5000;
}

.modal__backdrop{
  position: absolute;
  inset: 0;
}

.modal[aria-hidden="true"]{
  pointer-events: none !important;
}
.modal[aria-hidden="false"]{
  pointer-events: auto !important;
}



/* ✅ Modal visibility: aria-hidden true iken GERÇEKTEN kapat */
.modal[aria-hidden="true"]{
  display: none !important;
}
.modal[aria-hidden="false"]{
  display: block !important;
}

/* =========================================================
   PATIENT SHEET OVERRIDE (isolated + hard override)
   Only affects #patientModal
   ========================================================= */

#patientModal{
  display:none !important;
  position:fixed !important;
  inset:0 !important;
  z-index:99990 !important;

  /* sheet layout */
  align-items:flex-end !important;
  justify-content:center !important;

  /* iOS safe area + padding */
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) 10px !important;

  /* kill any transforms from global modal rules */
  transform:none !important;
  opacity:1 !important;
  pointer-events:none !important; /* closed: no click eating */
}

#patientModal.is-open{
  display:flex !important;
  pointer-events:auto !important;
}

#patientModal[aria-hidden="false"]{
  display:flex !important;
  pointer-events:auto !important;
}

/* Backdrop hard */
#patientModal .modal__backdrop{
  position:absolute !important;
  inset:0 !important;
  background: rgba(0,0,0,.55) !important;
  backdrop-filter: blur(2px) !important;
}

/* Panel hard */
#patientModal .modal__panel{
  position:relative !important;
  width: min(680px, calc(100% - 0px)) !important;
  max-width: 680px !important;

  margin:0 !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;

  transform:none !important;
  opacity:1 !important;

  border-radius: 18px 18px 14px 14px !important;
  overflow:hidden !important;

  background: rgba(20,22,26,.98) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.55) !important;
}

/* Sheet enter animation */
#patientModal.is-open .modal__panel{
  animation: patientSheetIn .18s ease-out both !important;
}

@keyframes patientSheetIn{
  from { transform: translateY(22px); opacity:0; }
  to   { transform: translateY(0);    opacity:1; }
}

/* Optional: header spacing looks nicer on mobile */
#patientModal .modal__head{
  padding-top: 14px !important;
}

/* Hide FAB when modal open */
body.modal-open .fab{
  display:none !important;
}


/* ===============================
   FAB FINAL (dark theme friendly)
   =============================== */
.fab{
  background: linear-gradient(135deg, #2f80ff, #1f5edc) !important;
  color: #fff !important;

  border: 0 !important;
  box-shadow:
    0 10px 30px rgba(47,128,255,.35),
    0 2px 8px rgba(0,0,0,.35) !important;

  width: 56px !important;
  height: 56px !important;
  border-radius: 999px !important;

  font-size: 30px !important;
  font-weight: 500 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  cursor: pointer !important;
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    filter .15s ease !important;
}

/* Hover (desktop) */
.fab:hover{
  filter: brightness(1.08) !important;
  box-shadow:
    0 14px 36px rgba(47,128,255,.45),
    0 4px 12px rgba(0,0,0,.4) !important;
}

/* Active / tap */
.fab:active{
  transform: scale(.96) !important;
  box-shadow:
    0 8px 22px rgba(47,128,255,.3),
    0 2px 6px rgba(0,0,0,.35) !important;
}

/* Focus outline kapat (mobilde çirkin durur) */
.fab:focus{
  outline: none !important;
}

