﻿/* Defaults (light theme) */
body {
    padding-top: 56px;
    padding-bottom: 20px;
    font-family: bahnschrift, system-ui, sans-serif;
    background-color: #ffffff;
    color: #1f1f1f;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-bs-theme='dark'] body {
    background-color: #0f0f10;
    color: #e0e0e0;
}

.bg-body-reactive {
    background-color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-bs-theme='dark'] .bg-body-reactive {
    background-color: #0f0f10;
}

/* Headings */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    transition: color 0.3s ease;
    color: #1f1f1f;
}

[data-bs-theme='dark'] h1,
[data-bs-theme='dark'] h2,
[data-bs-theme='dark'] h3,
[data-bs-theme='dark'] h4,
[data-bs-theme='dark'] h5 {
    color: #ffffff;
}

/* Card styles */
.card {
    margin-bottom: 1rem;

    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

[data-bs-theme='dark'] .card {
    background-color: #1a1a1c;
    border: 1px solid #2a2a2c;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Card navigation hover */
.card-navigation {
    cursor: pointer;

    transition: all 0.2s ease-in-out;
    background-color: #f8f9fa;
}

    .card-navigation:hover {
        background-color: #eeeeee;
    }

[data-bs-theme='dark'] .card-navigation {
    background-color: #18181a;
}

    [data-bs-theme='dark'] .card-navigation:hover {
        background-color: #222224;
        box-shadow: 0 0 0.5rem rgba(255, 255, 255, 0.05);
    }

/* Navbar */
.navbar-theme {
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: #f8f9fa;
    color: #1f1f1f;
    /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);*/
    border: 1px solid #e0e0e0;
}

    .navbar-theme .navbar-brand {
        color: inherit;
        font-weight: bold;
        font-size: 1.25rem;
        letter-spacing: 0.5px;
    }

[data-bs-theme='dark'] .navbar-theme {
    background-color: #0f0f10;
    color: #e0e0e0;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);*/
    border: 1px solid #2a2a2c;
}

/* Accent text (applies to charts, tags, etc.) */
.text-accent-blue {
    color: #2563eb;
}

.text-accent-green {
    color: #22c55e;
}

.text-accent-red {
    color: #ef4444;
}

/* Optional background accents */
.bg-accent-surface {
    background-color: #f1f5f9;
}

[data-bs-theme='dark'] .bg-accent-surface {
    background-color: #131314;
}

.border-subtle {
    border: 1px solid #e2e8f0;
}

[data-bs-theme='dark'] .border-subtle {
    border-color: #2e2e30;
}

.sidebar {
    width: 300px;
    min-height: 100vh;
    position: sticky;
    top: 56px; /* height of navbar */
    background-color: #f8f9fa;
    padding: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 1000;
    border-right: 1px solid #e0e0e0;
}

[data-bs-theme='dark'] .sidebar {
    background-color: #0f0f10;
    color: #e0e0e0;
    border-right: 1px solid #2a2a2c !important;
}

.main-content {
    min-height: calc(100vh - 56px);
    overflow-x: hidden;
    background-color: inherit;
    color: inherit;
}
.sidebar-section h6 {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
    color: #6c757d;
}

.sidebar-link {
    display: block;
    color: inherit;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

[data-bs-theme='light'] .sidebar-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.bg-accent-surface {
    background-color: #f9fafb;
}

[data-bs-theme='dark'] .bg-accent-surface {
    background-color: #18191a;
}

.bg-light-subtle {
    background-color: #f9fafb;
}

[data-bs-theme='dark'] .bg-light-subtle {
    background-color: #1e1f21;
}

.blockquote {
    font-size: 0.95rem;
    border-left: 4px solid #ccc;
}

[data-bs-theme='dark'] .blockquote {
    border-left: 4px solid #666;
}

.border-dashed {
    border: 2px dashed #ccc !important;
}

.add-feed-card {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    background-color: #f8f9fa;
}

.add-feed-card:hover {
    background-color: #e9ecef;
    border-color: #999;
    box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.08);
}

/* 🌙 Dark theme override */
[data-bs-theme='dark'] .add-feed-card {
    background-color: #1e1e20;
    color: #ccc;
    border-color: #444;
}

[data-bs-theme='dark'] .add-feed-card:hover {
    background-color: #2a2a2c;
    border-color: #666;
    color: #eee;
    box-shadow: 0 0 0.25rem rgba(255, 255, 255, 0.05);
}
.bg-body-tertiary {
    background-color: #f8f9fa;
}

[data-bs-theme='dark'] .bg-body-tertiary {
    background-color: #1e1f21;
}
.message-thread {
    padding-bottom: 120px; /* leave room for input bar */
}

.main-chat-container {
    height: calc(100vh - 100px); /* minus nav/header if any */
    overflow-y: auto;
    padding-bottom: 160px; /* leave space for fixed input bar */
}

.fixed-input-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff; /* or #121212 for dark mode */
    border-top: 1px solid #ddd;
    padding: 1rem;
    z-index: 1030; /* above content */
}
.btn-icon {
    line-height: 1;
    height: 1.5rem;
    width: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 50%;
}
