/* ── Saakshi — Commercial UI Stylesheet ────────────────────────────── */

/* Inter font applied globally */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

/* Thin custom scrollbar for chat area */
.chat-scroll::-webkit-scrollbar { width: 5px; }
.chat-scroll::-webkit-scrollbar-track { background: transparent; }
.chat-scroll::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; }
.chat-scroll::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* Nav tab active underline indicator */
.nav-tab-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 20px;
    height: 52px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(255,255,255,0.55);
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 7px;
}
.nav-tab-btn:hover { color: rgba(255,255,255,0.85); }
.nav-tab-btn.active {
    color: #FFFFFF;
    font-weight: 700;
}
.nav-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    background: #60A5FA;
    border-radius: 3px 3px 0 0;
}

/* Login form inputs — override Bootstrap Flatly fixed height */
.saakshi-login-input {
    height: auto !important;
    padding: 12px 14px !important;
    font-size: 0.92rem !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    color: #1E293B !important;
    line-height: 1.5 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.saakshi-login-input:focus {
    outline: none !important;
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12) !important;
}

/* Login button hover */
.saakshi-login-btn:hover { background: #1e40af !important; }
.saakshi-login-btn:active { transform: translateY(1px); }

/* Sign-in button transition */
.saakshi-login-btn {
    transition: background 0.15s ease, transform 0.1s ease;
}

/* Saakshi markdown response */
.saakshi-response p { margin: 0.3em 0; line-height: 1.7; }
.saakshi-response p:last-child { margin-bottom: 0; }
.saakshi-response h1,
.saakshi-response h2,
.saakshi-response h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1B3A6B;
    margin: 14px 0 6px 0;
}
.saakshi-response h1:first-child,
.saakshi-response h2:first-child,
.saakshi-response h3:first-child { margin-top: 0; }
.saakshi-response strong { font-weight: 700; color: #1B3A6B; }
.saakshi-response em { font-style: italic; color: #475569; }
.saakshi-response ul,
.saakshi-response ol { margin: 6px 0 8px 0; padding-left: 20px; }
.saakshi-response li { margin-bottom: 4px; line-height: 1.6; }
.saakshi-response hr { border: none; border-top: 1px solid #E2E8F0; margin: 12px 0; }
.saakshi-response code {
    background: #F1F5F9;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.83rem;
    color: #2563EB;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.saakshi-response blockquote {
    border-left: 3px solid #2563EB;
    margin: 8px 0;
    padding: 4px 14px;
    color: #475569;
    font-style: italic;
    background: #F8FAFF;
    border-radius: 0 6px 6px 0;
}

/* Bot bubble card hover lift */
.saakshi-bot-bubble { transition: box-shadow 0.15s ease; }
.saakshi-bot-bubble:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important; }

/* KPI tile hover */
.kpi-tile:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.10) !important;
    transform: translateY(-1px);
}

/* Chart card hover lift */
.saakshi-chart-card { transition: box-shadow 0.15s ease, transform 0.15s ease; }
.saakshi-chart-card:hover {
    box-shadow: 0 6px 24px rgba(27,58,107,0.10) !important;
    transform: translateY(-1px);
}

/* Sidebar thread item hover */
.thread-item { transition: background 0.12s ease; }
.thread-item:hover { background: #EFF6FF !important; }

/* Details/summary chapter accordion */
details > summary { cursor: pointer; user-select: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::marker { display: none; }
