/* İ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);
}
