/* DentCell — Akademi */
.ac { display: flex; flex-direction: column; gap: 16px; }
.ac-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.ac-top h2 { margin: 0; font-size: 1.45rem; font-weight: 800; color: #0f172a; }
.ac-top p { margin: 4px 0 0; color: #64748b; font-size: .84rem; }
.ac-tabs { display: inline-flex; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 4px; gap: 2px; }
.ac-tabs button { border: 0; background: transparent; font: inherit; font-size: .84rem; font-weight: 700; color: #475569; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.ac-tabs button.on { background: #0f172a; color: #fff; }
.ac-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(15,23,42,.04); min-width: 0; }
.ac-card h3 { margin: 0; font-size: 1rem; font-weight: 800; color: #0f172a; }
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a; font: inherit; font-size: .82rem; font-weight: 700; padding: 9px 14px; border-radius: 11px; cursor: pointer; white-space: nowrap; }
.ac-btn.primary { background: linear-gradient(135deg, #2f80ed, #1d6fe0); color: #fff; border-color: transparent; }
.ac-btn.ghost { margin-left: auto; padding: 6px 10px; font-size: .76rem; }
.ac-btn:disabled { opacity: .55; cursor: not-allowed; }

.ac-ai { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.ac-suggest { display: flex; flex-direction: column; gap: 8px; }
.ac-suggest h3 { margin-bottom: 4px; }
.ac-suggest button { text-align: left; border: 1px solid #e2e8f0; background: #f8fafc; font: inherit; font-size: .8rem; color: #1e293b; padding: 9px 11px; border-radius: 12px; cursor: pointer; line-height: 1.4; }
.ac-suggest button:hover { border-color: #93c5fd; background: #eff6ff; }
.ac-disclaimer { margin: 6px 0 0; font-size: .72rem; color: #94a3b8; line-height: 1.45; }
.ac-chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ac-chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #eef2f7; }
.ac-chat-head b { display: block; font-size: .92rem; color: #0f172a; } .ac-chat-head small { color: #64748b; font-size: .74rem; }
.ac-bot { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #2f80ed, #6d28d9); color: #fff; font-weight: 800; font-size: .82rem; display: flex; align-items: center; justify-content: center; }
.ac-chat-list { height: min(58vh, 560px); overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, #fbfdff, #f5f9ff); }
.ac-welcome { margin: auto; max-width: 420px; text-align: center; color: #475569; }
.ac-welcome b { font-size: 1.05rem; color: #0f172a; }
.ac-msg { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: .88rem; line-height: 1.55; color: #0f172a; }
.ac-msg.user { align-self: flex-end; background: linear-gradient(135deg, #2f80ed, #1d6fe0); color: #fff; border-top-right-radius: 6px; }
.ac-msg.assistant { align-self: flex-start; background: #fff; border: 1px solid #e2e8f0; border-top-left-radius: 6px; }
.ac-msg p { margin: 0 0 8px; } .ac-msg p:last-child { margin-bottom: 0; }
.ac-msg ul, .ac-msg ol { margin: 4px 0 8px; padding-left: 20px; } .ac-msg li { margin-bottom: 3px; }
.ac-msg h4 { margin: 8px 0 4px; font-size: .9rem; }
.ac-msg code { background: #f1f5f9; padding: 1px 5px; border-radius: 5px; font-size: .8rem; }
.ac-msg.typing { display: flex; gap: 5px; padding: 14px 16px; }
.ac-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: acDot 1.2s infinite ease-in-out; }
.ac-msg.typing span:nth-child(2) { animation-delay: .15s; } .ac-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes acDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ac-hint { margin: 10px 18px 0; font-size: .78rem; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 8px 10px; }
.ac-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #eef2f7; align-items: flex-end; }
.ac-input textarea { flex: 1; resize: none; font: inherit; font-size: .88rem; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 14px; outline: none; max-height: 160px; }
.ac-input textarea:focus { border-color: #60a5fa; }

.ac-vbar { display: flex; flex-direction: column; gap: 12px; }
.ac-search { display: flex; gap: 8px; }
.ac-search input { flex: 1; font: inherit; font-size: .9rem; padding: 11px 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; outline: none; }
.ac-search input:focus { border-color: #93c5fd; background: #fff; }
.ac-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-topics button { border: 1px solid #e2e8f0; background: #fff; font: inherit; font-size: .78rem; font-weight: 700; color: #475569; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.ac-topics button.on { background: #0f172a; color: #fff; border-color: #0f172a; }
.ac-sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ac-sec-head small { display: block; color: #64748b; font-size: .74rem; margin-top: 2px; }
.ac-empty { padding: 26px 12px; text-align: center; color: #94a3b8; font-size: .84rem; border: 1px dashed #e2e8f0; border-radius: 14px; }
.ac-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ac-video { border: 1px solid #eef2f7; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.ac-thumb { position: relative; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #0f172a; cursor: pointer; display: block; width: 100%; }
.ac-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-thumb-ph { color: #64748b; font-size: 2rem; }
.ac-thumb i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(239,68,68,.92); color: #fff; font-style: normal; display: flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.ac-video-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.ac-video-body b { font-size: .88rem; color: #0f172a; }
.ac-video-body p { margin: 0; font-size: .76rem; color: #64748b; }
.ac-video-body small { color: #94a3b8; font-size: .7rem; }
.ac-tag { align-self: flex-start; font-size: .66rem; font-weight: 800; color: #1d4ed8; background: #dbeafe; padding: 2px 8px; border-radius: 999px; }
.ac-video-act { display: flex; gap: 12px; margin-top: 2px; }
.ac-video-act button { border: 0; background: none; padding: 0; font: inherit; font-size: .74rem; font-weight: 700; color: #1d6fe0; cursor: pointer; }
.ac-video-act .danger { color: #dc2626; }
.ac-topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ac-topic { border: 1px solid #eef2f7; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: #fcfdff; }
.ac-topic b { font-size: .9rem; color: #0f172a; margin-bottom: 2px; }
.ac-topic a { font-size: .8rem; color: #1d6fe0; text-decoration: none; font-weight: 600; }
.ac-topic a::before { content: '▶ '; color: #ef4444; font-size: .7rem; }
.ac-topic a:hover { text-decoration: underline; }

.ac-modal { position: fixed; inset: 0; z-index: 10050; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ac-modal-card { width: 100%; max-width: 860px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 20px; padding: 18px 20px; }
.ac-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ac-modal-head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.ac-x { width: 32px; height: 32px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; }
.ac-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.ac-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ac-note { color: #475569; font-size: .86rem; margin: 10px 0 0; }
.ac-form { display: flex; flex-direction: column; gap: 10px; }
.ac-form label { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; font-weight: 700; color: #334155; }
.ac-form label small { font-weight: 500; color: #94a3b8; }
.ac-form input, .ac-form select, .ac-form textarea { font: inherit; font-size: .88rem; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 10px; }
.ac-modal-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
@media (max-width: 1000px) { .ac-ai { grid-template-columns: 1fr; } .ac-suggest { order: 2; } }
@media (max-width: 640px) { .ac-msg { max-width: 92%; } .ac-search { flex-direction: column; } }
.ac-chat-list { height: clamp(280px, calc(100vh - 440px), 560px); }
.ac { padding-bottom: 40px; }

/* Yapay zekâ klinik asistanı */
.as .ac-msg.assistant .as-table { overflow-x: auto; margin: 6px 0 10px; }
.as .ac-msg.assistant table { border-collapse: collapse; font-size: .78rem; min-width: 100%; }
.as .ac-msg.assistant th, .as .ac-msg.assistant td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.as .ac-msg.assistant th { background: #f8fafc; font-weight: 700; color: #334155; }
.as .ac-msg.assistant hr { border: 0; border-top: 1px solid #e2e8f0; margin: 10px 0; }
.as-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e2e8f0; }
.as-wa { flex-direction: column; }
.as-wa b { display: block; font-size: .8rem; }
.as-wa small { color: #64748b; font-size: .72rem; }
.as-wa pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: .78rem; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px; color: #14532d; }
.as-wa .ac-btn { align-self: flex-start; }
