/* İyilik Hali Uzman Merkezi — teal marka, kenar menü, sohbet arayüzü */
/* Academy (akademi.css) kalıbından uyarlandı, uzman modüllerine özel sınıflar eklendi */

:root {
    --ink: #06919D;
    --ink-dark: #057A84;
    --sand: #F6F4EF;
    --text: #1f2a2c;
}

body {
    font-family: 'Public Sans', system-ui, sans-serif;
    color: var(--text);
    margin: 0;
    background: #f4f6f6;
}

h1, h2, h3 {
    font-family: 'Instrument Serif', Georgia, serif;
}

/* ── Buton ve rozetler ── */
.btn-portal {
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .5rem 1.1rem;
    font-weight: 600;
}

.btn-portal:hover {
    background: var(--ink-dark);
    color: #fff;
}

.badge-soft {
    display: inline-block;
    background: rgba(6, 145, 157, .12);
    color: var(--ink-dark);
    border-radius: 999px;
    padding: .15rem .7rem;
    font-size: .78rem;
    font-weight: 600;
}

.lms-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.card-soft {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    padding: 1.2rem;
    text-decoration: none;
    color: inherit;
}

/* ── LMS shell: kenar menü + içerik ── */
.lms-shell {
    display: flex;
    min-height: 100vh;
}

.lms-sidebar {
    width: 240px;
    background: #0f1718;
    color: #cdd7d8;
    flex-shrink: 0;
    padding: 1.2rem 0;
}

.lms-brand {
    font-family: 'Instrument Serif', serif;
    font-size: 1.4rem;
    color: #fff;
    padding: 0 1.4rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.lms-sidebar nav {
    display: flex;
    flex-direction: column;
}

.lms-sidebar nav a {
    color: #aebcbd;
    text-decoration: none;
    padding: .65rem 1.4rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .9rem;
}

.lms-sidebar nav a:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.lms-sidebar nav a.active {
    background: var(--ink);
    color: #fff;
}

.lms-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lms-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1.4rem;
    background: #fff;
    border-bottom: 1px solid #eee;
}

/* ── Kurs / modül kartları ── */
.kurs-card {
    display: block;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    padding: 1.1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s;
    height: 100%;
}

.kurs-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .07);
    text-decoration: none;
    color: inherit;
}

/* ── Sohbet arayüzü (MI Simülatör + AI Süpervizyon) ── */
.chat-kabuk {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    max-width: 700px;
}

.chat-mesajlar {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    max-height: 480px;
    overflow-y: auto;
    padding: 1rem;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
}

.chat-balonu {
    padding: .75rem 1rem;
    border-radius: 12px;
    max-width: 85%;
    line-height: 1.5;
}

/* Uzman (kullanıcı) mesajı — sağa hizalı teal */
.chat-balonu.uzman {
    background: var(--ink);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-balonu.uzman .chat-rol-etiketi {
    color: rgba(255, 255, 255, .7);
}

/* Danışan / süpervizör (AI) mesajı — sola hizalı gri */
.chat-balonu.danisan,
.chat-balonu.supervizor {
    background: #f0f4f5;
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-rol-etiketi {
    font-size: .72rem;
    font-weight: 600;
    margin-bottom: .25rem;
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Kaynak etiketi (AI süpervizyon yanıtlarında) */
.chat-kaynak {
    font-size: .78rem;
    color: rgba(6, 145, 157, .85);
    font-style: italic;
}

.chat-balonu.uzman .chat-kaynak {
    color: rgba(255, 255, 255, .7);
}

.chat-giris {
    display: flex;
    flex-direction: column;
}

/* ── İlerleme çubuğu ── */
.progress-bar {
    background: var(--ink);
}

/* ── Login / tam ekran sayfalar ── */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-dark) 100%);
    padding: 1rem;
}

.login-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}

/* ── Canlı Vaka Simülasyonu ── */
.sim-run-item {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: .8rem;
    margin-bottom: .6rem;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.sim-run-item:hover {
    border-color: var(--ink);
}

.sim-run-item.aktif {
    border-color: var(--ink);
    box-shadow: 0 0 0 2px rgba(6, 145, 157, .15);
}

.sim-durum-rozet {
    display: inline-block;
    border-radius: 999px;
    padding: .12rem .6rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}

.sim-durum-calisiyor { background: rgba(255, 193, 7, .2); color: #8a6300; }
.sim-durum-tamamlandi { background: rgba(25, 135, 84, .15); color: #146c43; }
.sim-durum-hata { background: rgba(220, 53, 69, .15); color: #b02a37; }
.sim-durum-kuyrukta { background: rgba(108, 117, 125, .15); color: #495057; }

.sim-sil-onay {
    background: #fff5f5;
    border: 1px solid #f3c6c6;
    border-radius: 10px;
    padding: .6rem;
}

.sim-summary-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    padding: 1rem 1.2rem;
}

.sim-summary-stat {
    text-align: center;
    min-width: 90px;
}

.sim-summary-num {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Instrument Serif', serif;
}

.sim-summary-label {
    font-size: .72rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.sim-faz-baslik {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-dark);
    margin: 1.3rem 0 .6rem;
    padding-bottom: .3rem;
    border-bottom: 2px solid rgba(6, 145, 157, .2);
}

.sim-faz-baslik:first-child {
    margin-top: 0;
}

.sim-adim {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    background: #fff;
    border: 1px solid #eaeaea;
    border-left: 4px solid #ccc;
    border-radius: 10px;
    padding: .65rem .9rem;
    margin-bottom: .5rem;
}

.sim-adim-basarili { border-left-color: #198754; }
.sim-adim-basarisiz { border-left-color: #dc3545; background: #fff8f8; }
.sim-adim-atlandi { border-left-color: #adb5bd; opacity: .8; }

.sim-adim-ikon {
    font-size: 1.2rem;
    margin-top: .1rem;
    flex-shrink: 0;
}

.sim-adim-ikon.ok { color: #198754; }
.sim-adim-ikon.fail { color: #dc3545; }
.sim-adim-ikon.skip { color: #adb5bd; }

.sim-adim-govde {
    flex: 1;
    min-width: 0;
}

.sim-adim-ust {
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.sim-adim-detay-kutu {
    margin-top: .5rem;
    padding: .55rem .7rem;
    border-radius: 8px;
    font-size: .82rem;
    background: rgba(220, 53, 69, .06);
    border: 1px solid rgba(220, 53, 69, .2);
}

.sim-adim-detay-kutu.atlandi {
    background: rgba(108, 117, 125, .08);
    border-color: rgba(108, 117, 125, .25);
}
