/* =====================================================
   TUGAS AKHIR - UMSU
   Tema: SB Admin style, gradasi biru tua ke muda
   ===================================================== */

:root {
    --navy-dark: #0a1f44;
    --navy: #0d2b5e;
    --navy-light: #12386f;
    --blue-accent: #1e5fa8;
    --blue-mid: #2f7cc9;
    --blue-light: #4fa3e0;
    --gold: #d4a94a;
    --sidebar-width: 260px;
    --bg-body: #f2f5f9;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-body);
    font-family: 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif;
    color: #2c3e50;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
    color: #dce6f5;
    overflow-y: auto;
    z-index: 1030;
    transition: transform 0.25s ease;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand img { width: 40px; height: auto; border-radius: 6px; background: #fff; padding: 3px; }
.sidebar-brand-text { font-weight: 700; font-size: 15px; color: #fff; line-height: 1.2; }
.sidebar-brand-sub { font-size: 11px; color: #9db3d6; }

.sidebar-heading {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a93bd;
    padding: 16px 20px 6px;
    font-weight: 700;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c4d3ec;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}
.sidebar .nav-link i, .sidebar .nav-link .bi { width: 18px; text-align: center; }
.sidebar .nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-left-color: var(--gold);
}
.sidebar hr { border-color: rgba(255,255,255,0.08); margin: 8px 16px; }

.sidebar .nav-link-logout {
    color: #ff8a8a;
    font-weight: 700;
}
.sidebar .nav-link-logout:hover {
    background: rgba(255,90,90,0.12);
    color: #ffb3b3;
}
.sidebar .nav-link-logout i { color: #ff8a8a; }

/* ===== TOPBAR ===== */
.topbar {
    margin-left: var(--sidebar-width);
    background: #fff;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1020;
}
.topbar h5 { margin: 0; font-weight: 700; color: var(--navy); }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-user-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-accent), var(--navy));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px;
}

/* ===== CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 24px 28px 40px;
    min-height: 100vh;
}

/* ===== STAT CARDS (gradasi biru seperti contoh) ===== */
.stat-card {
    border-radius: 14px;
    padding: 22px 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 130px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(13,43,94,0.18);
}
.stat-card .stat-label {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    font-weight: 700;
}
.stat-card .stat-value { font-size: 32px; font-weight: 800; margin: 4px 0; }
.stat-card .stat-sub { font-size: 12.5px; opacity: 0.9; }
.stat-card .stat-icon {
    position: absolute; right: 18px; top: 18px;
    font-size: 42px; opacity: 0.25;
}

.grad-navy   { background: linear-gradient(135deg, #0a1f44, #1e5fa8); }
.grad-blue   { background: linear-gradient(135deg, #1e5fa8, #4fa3e0); }
.grad-green  { background: linear-gradient(135deg, #0f7a5c, #2fbf8a); }
.grad-teal   { background: linear-gradient(135deg, #0d3b57, #1e93a8); }
.grad-purple { background: linear-gradient(135deg, #3a2b6e, #6a5acd); }
.grad-gold   { background: linear-gradient(135deg, #8a6a1e, #d4a94a); }

/* ===== PANEL / CARD ===== */
.panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    overflow: hidden;
}
.panel-header {
    padding: 14px 20px;
    font-weight: 700;
    color: var(--navy);
    border-bottom: 1px solid #eef1f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panel-header.grad {
    background: linear-gradient(135deg, var(--navy), var(--blue-accent));
    color: #fff;
    border-bottom: none;
}
.panel-body { padding: 20px; }

/* ===== BUTTONS ===== */
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-outline-navy { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #2c2005; }
.btn-gold:hover { background: #c39a3a; border-color: #c39a3a; color: #2c2005; }

/* ===== TABLE ===== */
.table thead th {
    background: #f4f7fb;
    color: var(--navy);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #e3e9f2;
}

/* ===== PROGRESS BAR TIMELINE ===== */
.progress-ta { height: 26px; border-radius: 13px; background: #e9edf3; }
.progress-ta .progress-bar {
    background: linear-gradient(90deg, var(--navy), var(--blue-mid));
    font-weight: 700; font-size: 12.5px;
    border-radius: 13px;
}

.timeline-wrapper { position: relative; padding-top: 6px; }
.timeline-line {
    position: absolute;
    top: 35px;
    left: 5%;
    right: 5%;
    height: 4px;
    background: #e3e9f2;
    border-radius: 2px;
    z-index: 0;
}
.timeline-line-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--navy), var(--blue-mid));
    border-radius: 2px;
    transition: width 0.4s ease;
}
.timeline-step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
    min-width: 80px;
}
.timeline-step .dot {
    width: 56px; height: 56px; border-radius: 50%;
    background: #fff; color: #a8b6cc;
    border: 3px solid #e3e9f2;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px; font-weight: 700; font-size: 20px;
    transition: all 0.25s ease;
}
.timeline-step.done .dot {
    background: linear-gradient(135deg, var(--navy), var(--blue-accent));
    color: #fff; border-color: var(--blue-accent);
    box-shadow: 0 4px 10px rgba(30,95,168,0.35);
}
.timeline-step.active .dot {
    background: linear-gradient(135deg, var(--gold), #e8bd6a);
    color: #2c2005; border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(212,169,74,0.45);
    animation: pulse-gold 1.8s infinite;
}
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(212,169,74,0.45); }
    70% { box-shadow: 0 0 0 10px rgba(212,169,74,0); }
    100% { box-shadow: 0 0 0 0 rgba(212,169,74,0); }
}
.timeline-step .label { font-size: 12.5px; color: #37455a; font-weight: 700; }
.timeline-step .step-status { font-size: 10.5px; margin-top: 2px; font-weight: 600; }
.timeline-step.done .label { color: var(--navy); }

/* ===== LOGIN PAGE ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 45%, var(--blue-accent) 100%);
    padding: 20px;
}
.login-card {
    background: #fff;
    border-radius: 18px;
    max-width: 420px;
    width: 100%;
    padding: 40px 36px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.login-logo { text-align: center; margin-bottom: 12px; }
.login-logo img { width: 72px; }
.login-title { text-align: center; font-weight: 800; color: var(--navy); font-size: 20px; margin-bottom: 2px; }
.login-subtitle { text-align: center; color: #7a8aa3; font-size: 13px; margin-bottom: 24px; }
.login-card .form-control { border-radius: 10px; padding: 11px 14px; border-color: #dde4ee; }
.login-card .form-control:focus { border-color: var(--blue-accent); box-shadow: 0 0 0 3px rgba(30,95,168,0.15); }
.login-card .btn-login {
    background: linear-gradient(135deg, var(--navy), var(--blue-accent));
    border: none; color: #fff; font-weight: 700; padding: 11px; border-radius: 10px;
    width: 100%;
}
.login-card .btn-login:hover { opacity: 0.92; color:#fff; }
.login-footer-link { text-align: center; margin-top: 18px; font-size: 13.5px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .topbar, .main-content { margin-left: 0; }
}

.badge { font-weight: 600; font-size: 11.5px; padding: 5px 9px; }

/* ===== DOC CARD (status bimbingan per BAB) ===== */
.doc-card {
    border: 2px solid #e3e9f2;
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px;
    height: 100%;
    transition: all 0.2s ease;
    position: relative;
}
.doc-card-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; margin-bottom: 10px;
    background: #e9edf3; color: #7a8aa3;
}
.doc-card-title { font-weight: 700; font-size: 14.5px; color: #2c3e50; margin-bottom: 4px; }
.doc-card-sub { font-weight: 500; font-size: 12px; color: #7a8aa3; }
.doc-card-status { font-weight: 700; font-size: 12.5px; margin-bottom: 4px; display:flex; align-items:center; gap:5px; }
.doc-card-meta { font-size: 11.5px; color: #7a8aa3; margin-bottom: 8px; }
.doc-card-catatan {
    font-size: 12px; background: rgba(0,0,0,0.04); border-radius: 8px;
    padding: 7px 10px; margin-bottom: 10px; color: #55637a;
}
.doc-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn-doc-upload {
    background: linear-gradient(135deg, var(--navy), var(--blue-accent));
    color: #fff; font-weight: 600; border: none;
}
.btn-doc-upload:hover { opacity: 0.9; color: #fff; }

/* Status kosong (belum ada dokumen) */
.doc-card.doc-empty { border-color: #e3e9f2; background: #f8fafc; }
.doc-card.doc-empty .doc-card-icon { background: #e9edf3; color: #9aa8bd; }

/* Status menunggu review */
.doc-card.doc-menunggu { border-color: #a8c8e8; background: #eef5fc; }
.doc-card.doc-menunggu .doc-card-icon { background: #cfe3f7; color: #1e5fa8; }
.doc-card.doc-menunggu .doc-card-status { color: #1e5fa8; }

/* Status perlu revisi */
.doc-card.doc-revisi { border-color: #f0c987; background: #fdf6e8; }
.doc-card.doc-revisi .doc-card-icon { background: #f7e3ae; color: #a97b12; }
.doc-card.doc-revisi .doc-card-status { color: #a97b12; }

/* Status disetujui */
.doc-card.doc-disetujui { border-color: #8fd6b5; background: #eefbf4; }
.doc-card.doc-disetujui .doc-card-icon { background: #c3f0d9; color: #0f7a5c; }
.doc-card.doc-disetujui .doc-card-status { color: #0f7a5c; }
.doc-card.doc-disetujui { box-shadow: 0 4px 12px rgba(15,122,92,0.12); }

.doc-card.doc-readonly .doc-card-actions { display: none; }

/* ===== DOC CARD COMPACT (BAB1-5 dalam satu baris) ===== */
.doc-card.doc-card-compact {
    padding: 12px 10px;
    text-align: center;
}
.doc-card-compact .doc-card-icon {
    width: 34px; height: 34px; font-size: 15px; margin: 0 auto 8px;
}
.doc-card-compact .doc-card-title { font-size: 13px; margin-bottom: 1px; }
.doc-card-sub2 { font-size: 10.5px; color: #7a8aa3; margin-bottom: 6px; }
.doc-card-compact .doc-card-status { font-size: 11px; justify-content: center; margin-bottom: 3px; }
.doc-card-compact .doc-card-meta { font-size: 10px; margin-bottom: 6px; }
.doc-card-compact .doc-card-catatan { font-size: 10.5px; padding: 5px 7px; margin-bottom: 6px; text-align: left; }
.doc-card-compact .doc-card-actions { justify-content: center; gap: 6px; }
.doc-card-compact .doc-card-actions .btn { padding: 4px 9px; }

/* ===== DOC STRIP (Sempro/Sidang - ringkas horizontal) ===== */
.doc-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #e3e9f2;
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 16px;
    height: 100%;
}
.doc-strip-icon {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; background: #e9edf3; color: #9aa8bd;
}
.doc-strip-title { font-weight: 700; font-size: 13.5px; color: #2c3e50; }
.doc-strip-status { font-size: 11.5px; color: #7a8aa3; }

.doc-strip.doc-menunggu { border-color: #a8c8e8; background: #eef5fc; }
.doc-strip.doc-menunggu .doc-strip-icon { background: #cfe3f7; color: #1e5fa8; }
.doc-strip.doc-disetujui { border-color: #8fd6b5; background: #eefbf4; }
.doc-strip.doc-disetujui .doc-strip-icon { background: #c3f0d9; color: #0f7a5c; }
a:has(.doc-strip) { display: block; }
a:has(.doc-strip):hover .doc-strip { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(13,43,94,0.12); }

/* ===== ACHIEVEMENT BANNER (selamat sempro/sidang) ===== */
.achievement-banner {
    display: flex; align-items: center; gap: 16px;
    border-radius: 16px; padding: 18px 22px; margin-bottom: 20px;
    color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    animation: achievement-pop 0.5s ease;
}
@keyframes achievement-pop {
    0% { transform: scale(0.96); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.achievement-icon {
    width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.achievement-title { font-weight: 800; font-size: 16px; margin-bottom: 3px; }
.achievement-sub { font-size: 13px; opacity: 0.95; }
.achievement-gold { background: linear-gradient(135deg, #a97b12, var(--gold)); }
.achievement-blue { background: linear-gradient(135deg, var(--navy), var(--blue-accent)); }

/* ===== JUDUL HERO CARD ===== */
.judul-hero {
    border-radius: 18px; padding: 32px; text-align: center; color: #fff;
    margin-bottom: 20px; box-shadow: 0 10px 26px rgba(0,0,0,0.14);
}
.judul-hero-icon { font-size: 44px; margin-bottom: 6px; }
.judul-hero-badge {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
    background: rgba(255,255,255,0.22); padding: 4px 14px; border-radius: 20px;
}
.judul-hero-approved { background: linear-gradient(135deg, #0f7a5c, #2fbf8a); }
.judul-hero-pending { background: linear-gradient(135deg, #a97b12, var(--gold)); color: #2c2005; }
.judul-hero-locked { background: linear-gradient(135deg, #7a1f1f, #b23a3a); }

/* ===== QUOTA TRACKER (kesempatan pengajuan judul) ===== */
.quota-tracker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.quota-dot {
    width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--blue-accent);
    display: flex; align-items: center; justify-content: center; color: var(--blue-accent); font-size: 13px;
}
.quota-dot.used { background: #f4d3d3; border-color: #c94f4f; color: #c94f4f; }
.quota-label { font-size: 13px; color: #55637a; margin-left: 6px; }

/* ===== UJIAN CARD (Sempro/Sidang) ===== */
.ujian-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); height: 100%;
    display: flex; flex-direction: column;
}
.ujian-card-head {
    display: flex; align-items: center; gap: 14px; padding: 18px 20px;
    background: linear-gradient(135deg, #f4f7fb, #eaf0f9);
    border-bottom: 1px solid #e9edf3;
}
.ujian-card-icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff;
}
.icon-sempro { background: linear-gradient(135deg, var(--navy), var(--blue-accent)); }
.icon-sidang { background: linear-gradient(135deg, #8a6a1e, var(--gold)); }
.ujian-card-title { font-weight: 800; font-size: 15.5px; color: var(--navy); }
.ujian-card-sub { font-size: 12px; color: #7a8aa3; }
.ujian-card-body { padding: 18px 20px; flex: 1; }

/* Stepper 3 tahap: Diajukan -> Terjadwal -> Selesai */
.ujian-stepper { display: flex; align-items: flex-start; padding: 18px 24px 6px; position: relative; }
.ujian-step { flex: 1; text-align: center; position: relative; }
.ujian-step:not(:last-child)::after {
    content: ''; position: absolute; top: 15px; left: 50%; width: 100%; height: 3px;
    background: #e3e9f2; z-index: 0;
}
.ujian-step.done:not(:last-child)::after { background: linear-gradient(90deg, var(--navy), var(--blue-accent)); }
.ujian-step-dot {
    width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 6px; position: relative; z-index: 1;
    background: #fff; border: 3px solid #e3e9f2; color: #a8b6cc;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.ujian-step.done .ujian-step-dot { background: linear-gradient(135deg, var(--navy), var(--blue-accent)); border-color: var(--blue-accent); color: #fff; }
.ujian-step.active .ujian-step-dot { background: var(--gold); border-color: var(--gold); color: #2c2005; animation: pulse-gold 1.8s infinite; }
.ujian-step-label { font-size: 10.5px; font-weight: 700; color: #7a8aa3; }
.ujian-step.done .ujian-step-label { color: var(--navy); }
.ujian-step.batal .ujian-step-dot { background: #f0d3d3; border-color: #d98f8f; color: #a94442; }

/* Ready box (siap ajukan) */
.ujian-ready-box { text-align: center; padding: 10px 8px; }

/* Checklist prasyarat */
.ujian-checklist-title { font-size: 13px; font-weight: 700; color: #55637a; margin-bottom: 8px; }
.ujian-checklist { list-style: none; padding: 0; margin: 0; }
.ujian-checklist li { font-size: 13px; color: #90a0b7; padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.ujian-checklist li.done { color: #2c3e50; font-weight: 600; }
.ujian-checklist li i { font-size: 15px; color: #c3cedd; }
.ujian-checklist li.done i { color: #0f7a5c; }

/* Status box */
.ujian-status-box {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
    border-radius: 12px; font-size: 13px; line-height: 1.5;
}
.ujian-status-box i { font-size: 18px; margin-top: 1px; }
.status-info { background: #eef5fc; color: #1e5fa8; }
.status-primary { background: #e8f0fc; color: #164a85; }
.status-success { background: #eafbf3; color: #0f7a5c; }
.status-gold { background: #fdf6e8; color: #8a6a1e; }
.status-danger { background: #fdeeee; color: #a94442; }
.status-muted { background: #f1f3f6; color: #7a8aa3; }

.ujian-countdown {
    margin-top: 10px; font-size: 12.5px; font-weight: 700; color: #a97b12;
    background: #fdf6e8; display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 20px;
}

.ujian-jenis-tag {
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px;
}
.tag-sempro { background: #e8f0fc; color: #1e5fa8; }
.tag-sidang { background: #fdf6e8; color: #8a6a1e; }

/* ===== CHAT UI ===== */
.chat-panel { display: flex; flex-direction: column; height: 640px; overflow: hidden; }
.chat-box {
    flex: 1; overflow-y: auto; padding: 16px 18px;
    background: #f4f7fb;
    display: flex; flex-direction: column;
}

.chat-date-sep { text-align: center; margin: 14px 0; }
.chat-date-sep span {
    background: #dde6f2; color: #45566f; font-size: 11px; font-weight: 700;
    padding: 4px 14px; border-radius: 20px;
}

.chat-msg-block { margin-bottom: 14px; max-width: 72%; }
.chat-msg-block.me { align-self: flex-end; text-align: right; }
.chat-msg-block.them { align-self: flex-start; text-align: left; }

.chat-msg-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.chat-msg-block.me .chat-msg-header { flex-direction: row-reverse; }
.chat-avatar-mini {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 10.5px; font-weight: 800; color: #fff;
}
.avatar-dosen { background: linear-gradient(135deg, var(--navy), var(--blue-accent)); }
.avatar-mahasiswa { background: linear-gradient(135deg, #0f7a5c, #2fbf8a); }
.chat-name-label { font-size: 12px; font-weight: 700; color: #37455a; }
.chat-role-tag { font-weight: 500; color: #8a99b0; font-size: 11px; }

.chat-bubble {
    display: inline-block; text-align: left; padding: 9px 13px; border-radius: 14px;
    font-size: 13.5px; line-height: 1.4; max-width: 100%;
}
.chat-text { white-space: pre-wrap; word-wrap: break-word; }
.bubble-me {
    background: linear-gradient(135deg, var(--navy), var(--blue-accent));
    color: #fff; border-bottom-right-radius: 4px;
}
.bubble-them {
    background: #fff; color: #2c3e50; border: 1px solid #e3e9f2;
    border-bottom-left-radius: 4px;
}
.chat-meta { font-size: 10.5px; opacity: 0.8; margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.bubble-them .chat-meta { color: #8a99b0; }
.chat-msg-block.me .chat-meta { justify-content: flex-end; }
.read-receipt { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.read-yes { color: #7fd6ff; }
.bubble-me .read-yes { color: #a3e8b0; }
.read-no { opacity: 0.75; }

.chat-footer-info {
    display: none; justify-content: space-between; padding: 6px 18px;
    font-size: 11px; color: #7a8aa3; background: #eef2f8; border-top: 1px solid #e3e9f2;
}
.chat-footer-info span i { margin-right: 3px; }

.chat-input-wrapper {
    display: flex; gap: 8px; padding: 14px 16px; background: #fff;
    border-top: 1px solid #eef1f6;
}
.chat-input-wrapper .form-control { border-radius: 22px; padding: 10px 16px; }
.chat-input-wrapper .btn {
    border-radius: 50%; width: 42px; height: 42px; padding: 0;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
@media (max-width: 767px) { .chat-panel { height: 520px; } .chat-msg-block { max-width: 86%; } }