:root {
    --sidebar-w: 250px;
    --brand: #0d6efd;
}

body { -webkit-tap-highlight-color: transparent; }

/* ---------- App shell (staff back-office) ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar { width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); }
.sidebar-inner { display: flex; flex-direction: column; min-height: 100vh; padding: 1rem .75rem; }
.sidebar .brand {
    font-size: 1.1rem; font-weight: 700; gap: .4rem; align-items: center;
    padding: .5rem .75rem 1rem; color: #fff;
}
.sidebar .nav-link {
    color: #cfd4da; border-radius: .5rem; padding: .6rem .8rem; margin-bottom: .15rem;
    display: flex; align-items: center; gap: .6rem; font-size: .95rem;
}
.sidebar .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar .nav-link.active { background: var(--brand); color: #fff; }
.sidebar .nav-ico { width: 1.3rem; text-align: center; }
.sidebar-footer { margin-top: auto; padding-top: 1rem; }

.main-content { flex: 1 1 auto; min-width: 0; background: #f5f6f8; }

@media (min-width: 992px) {
    .sidebar { position: sticky; top: 0; height: 100vh; }
}

/* ---------- Cards / helpers ---------- */
.metric-card { border: none; border-radius: 1rem; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.metric-card .metric-value { font-size: 1.9rem; font-weight: 700; line-height: 1; }
.metric-card .metric-label { color: #6c757d; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }

.card { border: none; border-radius: .9rem; box-shadow: 0 2px 12px rgba(0,0,0,.05); }

.package-card { transition: transform .12s ease, box-shadow .12s ease; }
.package-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }

.badge-soft { background: rgba(13,110,253,.12); color: var(--brand); font-weight: 600; }

.confidence-bar { height: 8px; border-radius: 4px; background: #e9ecef; overflow: hidden; }
.confidence-bar > span { display: block; height: 100%; background: linear-gradient(90deg,#dc3545,#ffc107,#198754); }

/* ---------- Guest / auth ---------- */
.guest-body { background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%); min-height: 100vh; }
.guest-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.guest-card { background: #fff; border-radius: 1.25rem; padding: 2rem; width: 100%; max-width: 400px; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.guest-logo { font-size: 2.5rem; }

/* ---------- Chatbot widget ---------- */
.chat-window { max-width: 640px; margin: 0 auto; }
.chat-log { height: 60vh; overflow-y: auto; padding: 1rem; background: #f5f6f8; border-radius: 1rem; }
.chat-msg { max-width: 80%; padding: .6rem .9rem; border-radius: 1rem; margin-bottom: .6rem; white-space: pre-wrap; }
.chat-msg.user { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: .25rem; }
.chat-msg.assistant { background: #fff; border: 1px solid #e6e8eb; border-bottom-left-radius: .25rem; }
.chat-msg.system { background: #fff3cd; font-size: .85rem; text-align: center; margin: .5rem auto; }

.typing span { display:inline-block; width:6px;height:6px;border-radius:50%;background:#adb5bd;margin:0 1px;animation:blink 1.2s infinite both; }
.typing span:nth-child(2){animation-delay:.2s} .typing span:nth-child(3){animation-delay:.4s}
@keyframes blink { 0%,80%,100%{opacity:.2} 40%{opacity:1} }
