/* DentCell — Yapay Zekâ Asistanı */
.ag-wrap { display: flex; flex-direction: column; gap: 16px; }
.ag-hero { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #2563eb 0%, #1e40af 45%, #0f172a 100%); box-shadow: 0 18px 40px -22px rgba(30, 64, 175, .9); flex-wrap: wrap; }
.ag-hero-ic { width: 48px; height: 48px; border-radius: 15px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); color: #fff; }
.ag-hero-ic.sm { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(160deg, #ec4899, #8b5cf6); }
.ag-hero-tx { flex: 1; min-width: 240px; }
.ag-hero-tx h2 { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.ag-hero-tx p { margin: 4px 0 0; font-size: .84rem; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.ag-hero-state { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .78rem; font-weight: 700; }
.ag-hero-state i { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.ag-hero-state.on i { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); }
.ag-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ag-kpis > div { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; }
.ag-kpis b { display: block; font-size: 1.5rem; font-weight: 800; color: #0f172a; letter-spacing: -.02em; }
.ag-kpis span { font-size: .74rem; color: #64748b; font-weight: 600; }
.ag-kpis .warn { border-color: #fecaca; background: #fef2f2; }
.ag-kpis .warn b { color: #dc2626; }
.ag-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ag-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; font: inherit; font-size: .84rem; font-weight: 700; color: #334155; cursor: pointer; transition: background .15s, border-color .15s; }
.ag-tab:hover { border-color: #93c5fd; }
.ag-tab.on { background: #0f172a; color: #fff; border-color: #0f172a; }
.ag-tab em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .7rem; display: inline-flex; align-items: center; justify-content: center; }
.ag-body { display: flex; flex-direction: column; gap: 12px; }
.ag-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 40px 20px; background: #fff; border: 1px dashed #cbd5e1; border-radius: 16px; color: #94a3b8; }
.ag-empty b { color: #0f172a; font-size: .95rem; }
.ag-empty span { max-width: 520px; font-size: .82rem; line-height: 1.5; color: #64748b; }
.ag-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.ag-card.urgent { border-color: #fca5a5; box-shadow: 0 0 0 3px rgba(239, 68, 68, .08); }
.ag-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ag-card-top b { font-size: .95rem; color: #0f172a; }
.ag-card-top small { display: block; font-size: .72rem; color: #64748b; margin-top: 2px; }
.ag-risk { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: .68rem; font-weight: 800; font-style: normal; letter-spacing: .02em; white-space: nowrap; }
.ag-r-high { background: #fee2e2; color: #b91c1c; }
.ag-r-med { background: #fef3c7; color: #92400e; }
.ag-r-low { background: #dcfce7; color: #166534; }
.ag-msg { background: #f1f5f9; border-radius: 4px 14px 14px 14px; padding: 10px 12px; font-size: .88rem; color: #0f172a; line-height: 1.5; white-space: pre-line; }
.ag-msg span { display: block; font-size: .66rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.ag-why { display: flex; gap: 6px; align-items: flex-start; font-size: .76rem; color: #6d28d9; background: #f5f3ff; border-radius: 10px; padding: 8px 10px; }
.ag-why svg { flex: none; margin-top: 1px; }
.ag-draft span { display: block; font-size: .72rem; font-weight: 700; color: #475569; margin-bottom: 4px; }
.ag-draft textarea, .ag-test textarea, .ag-extra textarea { width: 100%; box-sizing: border-box; border: 1.5px solid #dbeafe; background: #f8fbff; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: .88rem; line-height: 1.5; color: #0f172a; resize: vertical; outline: none; }
.ag-draft textarea:focus, .ag-test textarea:focus, .ag-extra textarea:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.ag-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.ag-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 11px; border: 0; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: filter .15s, transform .15s; }
.ag-btn:active { transform: scale(.97); }
.ag-btn[disabled] { opacity: .55; pointer-events: none; }
.ag-btn.pri { background: linear-gradient(180deg, #2563eb, #1e40af); color: #fff; box-shadow: 0 8px 16px -8px rgba(37, 99, 235, .8); }
.ag-btn.ghost { background: #f1f5f9; color: #334155; }
.ag-btn.ghost:hover { background: #e2e8f0; }
.ag-btn.sm { min-height: 32px; padding: 0 10px; font-size: .76rem; border-radius: 9px; }
.ag-sub { font-size: .74rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: .05em; margin: 10px 2px 0; }
.ag-log { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; }
.ag-log-row { display: grid; grid-template-columns: 200px 1fr; gap: 14px; padding: 12px 16px; border-top: 1px solid #f1f5f9; }
.ag-log-row:first-child { border-top: 0; }
.ag-log-who b { display: block; font-size: .84rem; color: #0f172a; }
.ag-log-who small { font-size: .72rem; color: #64748b; }
.ag-log-tx p { margin: 0 0 6px; font-size: .82rem; line-height: 1.45; padding: 7px 10px; border-radius: 10px; white-space: pre-line; }
.ag-log-tx .in { background: #f1f5f9; color: #334155; }
.ag-log-tx .out { background: #eff6ff; color: #1e3a8a; margin-left: 24px; }
.ag-fl { display: flex; flex-direction: column; gap: 8px; }
.ag-fu { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #cbd5e1; border-radius: 14px; padding: 12px 14px; flex-wrap: wrap; }
.ag-fu.s-sent { border-left-color: #3b82f6; }
.ag-fu.s-answered { border-left-color: #22c55e; }
.ag-fu.s-alert { border-left-color: #ef4444; background: #fffafa; }
.ag-fu.s-alert.r-medium { border-left-color: #f59e0b; background: #fffdf5; }
.ag-fu.s-unsent { border-left-color: #f59e0b; }
.ag-fu.s-closed, .ag-fu.s-expired { opacity: .6; }
.ag-fu-main { flex: 1; min-width: 220px; }
.ag-fu-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ag-name { border: 0; background: none; padding: 0; font: inherit; font-size: .9rem; font-weight: 800; color: #1d4ed8; cursor: pointer; }
.ag-fu-proc { font-size: .86rem; font-weight: 700; color: #0f172a; }
.ag-fu-main small { display: block; font-size: .72rem; color: #64748b; margin-top: 3px; }
.ag-fu-sum { margin: 8px 0 0; padding: 8px 10px; background: #f8fafc; border-radius: 10px; font: inherit; font-size: .78rem; line-height: 1.5; color: #334155; white-space: pre-wrap; }
.ag-fu-err { margin-top: 6px; font-size: .74rem; color: #b45309; }
.ag-fu-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ag-st { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: #475569; }
.ag-fu-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ag-note { margin: 0; font-size: .8rem; color: #64748b; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; }
.ag-board { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 10px; overflow-x: auto; }
.ag-col { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px; min-height: 140px; display: flex; flex-direction: column; gap: 8px; }
.ag-col-h { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 800; color: #0f172a; }
.ag-col-h em { font-style: normal; font-size: .7rem; background: #e2e8f0; color: #334155; border-radius: 999px; padding: 1px 8px; }
.ag-col.c-way .ag-col-h em { background: #dbeafe; color: #1d4ed8; }
.ag-col.c-here { background: #f0fdf4; border-color: #bbf7d0; }
.ag-col.c-here .ag-col-h em { background: #22c55e; color: #fff; }
.ag-col-e { color: #cbd5e1; text-align: center; padding: 14px; }
.ag-pc { background: #fff; border-radius: 10px; padding: 9px 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.ag-pc-t { display: flex; gap: 8px; align-items: baseline; }
.ag-pc-t b { font-family: 'JetBrains Mono', monospace; font-size: .8rem; color: #0284c7; }
.ag-pc-t span { font-size: .84rem; font-weight: 700; color: #0f172a; }
.ag-pc small { display: block; font-size: .7rem; color: #64748b; margin-top: 2px; }
.ag-pc-a { display: flex; gap: 6px; margin-top: 8px; }
.ag-pc-a button { flex: 1; border: 0; border-radius: 8px; background: #f1f5f9; padding: 6px; font: inherit; font-size: .72rem; font-weight: 700; color: #334155; cursor: pointer; }
.ag-pc-a button:hover { background: #dbeafe; color: #1d4ed8; }
.ag-set { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px; }
.ag-sw { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.ag-sw input { position: absolute; opacity: 0; pointer-events: none; }
.ag-sw i { flex: none; width: 44px; height: 26px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .2s; margin-top: 2px; }
.ag-sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.ag-sw input:checked + i { background: #22c55e; }
.ag-sw input:checked + i::after { transform: translateX(18px); }
.ag-sw b { display: block; font-size: .9rem; color: #0f172a; }
.ag-sw small { display: block; font-size: .76rem; color: #64748b; line-height: 1.45; margin-top: 2px; }
.ag-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-left: 56px; }
.ag-seg.off { opacity: .5; }
.ag-seg button { text-align: left; border: 1.5px solid #e2e8f0; background: #f8fafc; border-radius: 12px; padding: 10px 12px; font: inherit; cursor: pointer; }
.ag-seg button.on { border-color: #2563eb; background: #eff6ff; }
.ag-seg b { display: block; font-size: .84rem; color: #0f172a; }
.ag-seg small { display: block; font-size: .72rem; color: #64748b; line-height: 1.4; margin-top: 3px; }
.ag-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ag-row2 label { display: flex; flex-direction: column; gap: 4px; font-size: .76rem; font-weight: 700; color: #475569; }
.ag-row2 select { padding: 9px 10px; border: 1.5px solid #e2e8f0; border-radius: 10px; font: inherit; font-size: .84rem; background: #fff; }
.ag-extra b { display: block; font-size: .86rem; color: #0f172a; }
.ag-extra small { display: block; font-size: .74rem; color: #64748b; margin: 2px 0 6px; }
.ag-test { display: flex; gap: 8px; align-items: stretch; }
.ag-test textarea { flex: 1; }
.ag-test-out { background: linear-gradient(160deg, #eff6ff, #f5f3ff); border: 1px solid #dbeafe; border-radius: 14px; padding: 12px 14px; }
.ag-test-out p { margin: 8px 0; font-size: .88rem; line-height: 1.55; color: #0f172a; white-space: pre-line; }
.ag-test-out small { font-size: .74rem; color: #6d28d9; }
.ag-pcard { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.ag-pcard-h { display: flex; gap: 12px; align-items: flex-start; }
.ag-pcard-h b { display: block; font-size: 1rem; color: #0f172a; font-weight: 800; }
.ag-pcard-h small { display: block; font-size: .78rem; color: #64748b; line-height: 1.45; margin-top: 2px; }
.ag-pform { display: flex; gap: 8px; flex-wrap: wrap; }
.ag-pform input { flex: 2; min-width: 200px; }
.ag-pform select { flex: 1; min-width: 150px; }
.ag-pform input, .ag-pform select { padding: 9px 12px; border: 1.5px solid #e2e8f0; border-radius: 11px; font: inherit; font-size: .84rem; background: #f8fafc; outline: none; }
.ag-pform input:focus, .ag-pform select:focus { border-color: #2563eb; background: #fff; }
@media (max-width: 760px) {
  .ag-kpis { grid-template-columns: 1fr 1fr; }
  .ag-log-row { grid-template-columns: 1fr; gap: 6px; }
  .ag-seg { grid-template-columns: 1fr; margin-left: 0; }
  .ag-row2 { grid-template-columns: 1fr; }
  .ag-test { flex-direction: column; }
  .ag-board { grid-template-columns: repeat(4, 220px); }
  .ag-fu-side { align-items: flex-start; }
}

/* Uygulamalı eğitim turları */
.tr-layer { position: fixed; inset: 0; z-index: 2147482000; pointer-events: none; }
.tr-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .5), 0 0 0 3px #60a5fa, 0 0 24px 6px rgba(96, 165, 250, .5); transition: all .3s cubic-bezier(.2, .9, .3, 1); pointer-events: none; }
.tr-card { position: fixed; pointer-events: auto; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 24px 60px -16px rgba(15, 23, 42, .5); font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif; color: #0f172a; transition: top .3s, left .3s; }
.tr-top { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; font-weight: 800; color: #2563eb; }
.tr-x { border: 0; background: #f1f5f9; width: 26px; height: 26px; border-radius: 8px; cursor: pointer; color: #64748b; }
.tr-card b { display: block; font-size: 1rem; margin: 6px 0 4px; }
.tr-card p { margin: 0; font-size: .86rem; line-height: 1.5; color: #475569; }
.tr-card .tr-miss { margin-top: 8px; font-size: .78rem; color: #b45309; }
.tr-acts { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tr-hint { margin-right: auto; font-size: .78rem; font-weight: 700; color: #2563eb; }
.tr-b { border: 0; border-radius: 10px; padding: 8px 14px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; background: linear-gradient(180deg, #2563eb, #1e40af); color: #fff; }
.tr-b.ghost { background: #f1f5f9; color: #334155; }
.tr-wait { font-size: .84rem; color: #64748b; padding: 6px 2px; }
.ac-tours { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ac-tour { text-align: left; border: 1px solid #e2e8f0; background: linear-gradient(160deg, #f8fbff, #fff); border-radius: 14px; padding: 14px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .15s; }
.ac-tour:hover { border-color: #60a5fa; transform: translateY(-1px); }
.ac-tour b { font-size: .9rem; color: #0f172a; }
.ac-tour small { font-size: .74rem; color: #64748b; }
.ac-tour span { align-self: flex-start; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; }
.ac-tour span.ok { background: #dcfce7; color: #166534; }

/* Kliniğim haritada */
.cm-card { margin-top: 14px; }
.cm-sw { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; color: #0f172a; margin: 6px 0 12px; }
.cm-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.cm-map-wrap { border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.cm-map { height: 300px; background: #eef2f7; }
.cm-noMap { padding: 40px 16px; text-align: center; font-size: .8rem; color: #64748b; }
.cm-map-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.cm-coord { font-size: .74rem; color: #475569; font-family: 'JetBrains Mono', monospace; }
.cm-btn { border: 0; background: #eff6ff; color: #1d4ed8; border-radius: 9px; padding: 7px 11px; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.cm-fields { display: flex; flex-direction: column; gap: 10px; }
.cm-fields label { display: flex; flex-direction: column; gap: 4px; font-size: .74rem; font-weight: 700; color: #475569; }
.cm-fields input, .cm-fields textarea { padding: 9px 11px; border: 1.5px solid #e2e8f0; border-radius: 10px; font: inherit; font-size: .84rem; color: #0f172a; background: #fff; outline: none; }
.cm-fields input:focus, .cm-fields textarea:focus { border-color: #2563eb; }
.cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-hint { font-size: .72rem; color: #64748b; }
.cm-acts { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
@media (max-width: 760px) { .cm-grid { grid-template-columns: 1fr; } }
