/* ============================================================ SRV website admin panel */
:root { --brand: #0F4EAA; --brand-dark: #0A3A80; --yellow: #FDC84C; --soft: #F3F6FA; --line: #E3E8EF; --ink: #1F2A37; }
body.admin { font-family: 'Poppins', system-ui, sans-serif; background: var(--soft); color: var(--ink); font-size: 14px; }
a { text-decoration: none; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-side { width: 250px; background: #0B2347; color: #c9d5e8; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { display: block; padding: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.logo-on-dark { display: inline-block; background: #fff; border-radius: 8px; padding: 5px 8px; max-width: 100%; }
.logo-on-dark img { height: 34px; width: auto; max-width: 100%; display: block; }
.admin-brand small { display: block; color: var(--yellow); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }
.admin-side nav { padding: 10px; }
.admin-side nav a { display: flex; align-items: center; gap: 10px; color: #c9d5e8; padding: 9px 12px; border-radius: 8px; margin-bottom: 2px; }
.admin-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side nav a.active { background: var(--brand); color: #fff; }
.side-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: .5; padding: 14px 12px 4px; }
.admin-main { flex: 1; min-width: 0; }
.admin-top { background: #fff; padding: 12px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.admin-content { padding: 20px; }
@media (max-width: 991px) {
    .admin-side { position: fixed; left: -260px; z-index: 1050; transition: left .2s; }
    .admin-side.open { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.4); }
}
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: 16px; font-weight: 600; margin: 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-row .form-control, .filter-row .form-select { width: auto; flex: 1 1 160px; }
.kpi { display: block; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--ink); height: 100%; overflow: hidden; }
a.kpi:hover { border-color: var(--brand); }
.kpi span { font-size: 12px; color: #5B6675; display: block; }
.kpi strong { font-size: 24px; font-weight: 700; color: var(--brand); }
.kpi strong small { font-size: 14px; color: var(--ink); }
.kpi i { position: absolute; right: 14px; top: 14px; font-size: 26px; color: #D6E4F5; }
.row-new { background: #FFFBEA; }
.mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 18px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar { width: 100%; max-width: 22px; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-col small { font-size: 10px; color: #8A94A3; margin-top: 3px; }
.bar-val { font-size: 10px; color: var(--ink); }
.timeline { list-style: none; padding-left: 0; margin: 0; }
.timeline li { border-left: 3px solid #D6E4F5; padding: 4px 0 8px 12px; }
.transcript { display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow-y: auto; background: var(--soft); padding: 12px; border-radius: 10px; }
.t-msg { max-width: 80%; } .t-msg small { font-size: 11px; color: #8A94A3; }
.t-msg.from-user { align-self: flex-end; text-align: right; }
.t-bubble { padding: 8px 12px; border-radius: 12px; white-space: pre-wrap; display: inline-block; text-align: left; }
.from-user .t-bubble { background: var(--brand); color: #fff; }
.from-bot .t-bubble { background: #fff; border: 1px solid var(--line); }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(120deg, #0B2347, var(--brand)); padding: 16px; }
.login-card { background: #fff; border-radius: 16px; padding: 30px; width: 100%; max-width: 380px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
