@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Default Theme: Dark Mode */
:root {
    --bg-primary: #080c14;
    --bg-secondary: #0f1626;
    --bg-panel: rgba(15, 22, 38, 0.75);
    --bg-input: rgba(255, 255, 255, 0.02);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --bg-bubble-bot: rgba(255, 255, 255, 0.04);
    --text-bubble-bot: #f8fafc;
    --shadow-color: rgba(0, 0, 0, 0.3);
    
    /* Brand Colors */
    --aquamarine: #00f2fe;
    --aquamarine-hover: #4facfe;
    --jaga-blue: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --jaga-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
}

/* Light Theme overrides */
body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-panel: rgba(255, 255, 255, 0.9);
    --bg-input: #f1f5f9;
    --border-color: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-bubble-bot: #e2e8f0;
    --text-bubble-bot: #0f172a;
    --shadow-color: rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Sidebar Layout */
.sidebar {
    width: 280px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.brand-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.brand-logo-img {
    height: 42px;
    object-fit: contain;
    border-radius: 6px;
}

body.light-theme .jaga-logo {
    filter: none; /* Keep black lines black in light mode */
}

body:not(.light-theme) .jaga-logo {
    filter: invert(1) brightness(1.2); /* Invert to white lines in dark mode */
}

.brand-divider {
    width: 1px;
    height: 35px;
    background-color: var(--border-color);
    margin: 0 10px;
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-aquamarine {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-jaga {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    margin-top: -4px;
    letter-spacing: 0.1em;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    background-color: rgba(0, 242, 254, 0.1);
    border-color: var(--aquamarine);
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.nav-item i {
    margin-right: 12px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.02);
}

body.light-theme .nav-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.nav-item.active {
    color: #080c14;
    background: var(--accent-gradient);
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.2);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    flex-grow: 1;
    min-height: 100vh;
    padding: 40px;
    background-image: radial-gradient(circle at top right, rgba(0, 242, 254, 0.05), transparent 400px),
                      radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.03), transparent 400px);
}

.page-section {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Cards & Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 242, 254, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.7;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.stat-desc {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend-up {
    color: var(--success);
    font-weight: 600;
}

/* Dashboard Layout Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 24px;
    margin-bottom: 24px;
}

.panel {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
}

.panel-action {
    font-size: 12px;
    color: var(--aquamarine);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}

body.light-theme .panel-action {
    color: #0284c7; /* Darker blue in light mode for contrast */
}

/* Charts / SVG visualization */
.chart-container {
    height: 220px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-top: 20px;
}

.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    height: 100%;
    justify-content: flex-end;
}

.bar-track {
    width: 32px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    height: 140px;
    position: relative;
    overflow: hidden;
}

body.light-theme .bar-track {
    background-color: rgba(0, 0, 0, 0.05);
}

.bar-fill {
    width: 100%;
    position: absolute;
    bottom: 0;
    border-radius: 6px;
    background: var(--accent-gradient);
    transition: height 1s ease-in-out;
}

.bar-fill.whatsapp { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.bar-fill.meta { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.bar-fill.google { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.bar-fill.portals { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }

.bar-value {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.bar-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 8px;
    text-align: center;
}

/* Lead Feed List */
.lead-feed {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

body.light-theme .feed-item {
    background-color: rgba(0, 0, 0, 0.01);
}

.feed-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

body.light-theme .feed-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.feed-lead-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feed-lead-name {
    font-weight: 600;
    color: var(--text-primary);
}

.feed-lead-source {
    font-size: 11px;
    color: var(--text-muted);
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-whatsapp {
    background-color: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge-meta {
    background-color: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.badge-google {
    background-color: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.badge-portals {
    background-color: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.feed-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-score {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--aquamarine);
    font-size: 14px;
}

body.light-theme .feed-score {
    color: #0284c7;
}

.feed-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Dashboard Insights & News styling */
.insights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background-color: rgba(0, 242, 254, 0.02);
    border: 1px solid rgba(0, 242, 254, 0.08);
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-secondary);
}

body.light-theme .insight-item {
    background-color: rgba(2, 132, 199, 0.04);
    border-color: rgba(2, 132, 199, 0.1);
}

.insight-item i {
    color: var(--aquamarine);
    font-size: 16px;
    margin-top: 2px;
}

body.light-theme .insight-item i {
    color: #0284c7;
}

/* News panel styling */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

.news-card {
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s ease;
}

body.light-theme .news-card {
    background-color: rgba(0, 0, 0, 0.01);
}

.news-card:hover {
    border-color: rgba(0, 242, 254, 0.15);
}

.news-header-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.news-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.news-card-desc {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Chat Simulator Section */
.chat-layout {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1.5fr;
    gap: 24px;
    height: calc(100vh - 160px);
}

/* Left panel: Profiles */
.profile-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.profile-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

body.light-theme .profile-card {
    background-color: rgba(0, 0, 0, 0.01);
}

.profile-card:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 242, 254, 0.1);
}

.profile-card.active {
    background-color: rgba(0, 242, 254, 0.03);
    border-color: var(--aquamarine);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

body.light-theme .profile-card.active {
    background-color: rgba(2, 132, 199, 0.05);
    border-color: #0284c7;
}

.profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--jaga-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Middle Panel: Chat Window */
.chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.chat-header-status {
    font-size: 11px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--success);
}

.chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    max-width: 85%;
    display: flex;
    flex-direction: column;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.chat-message.bot .message-bubble {
    background-color: var(--bg-bubble-bot);
    color: var(--text-bubble-bot);
    border-top-left-radius: 2px;
    border: 1px solid var(--border-color);
}

.chat-message.user .message-bubble {
    background: var(--accent-gradient);
    color: #080c14; /* Always dark text on neon cyan */
    font-weight: 500;
    border-top-right-radius: 2px;
}

.message-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    align-self: flex-end;
}

.chat-message.bot .message-time {
    align-self: flex-start;
}

.typing-indicator {
    display: none;
    align-self: flex-start;
    background-color: var(--bg-bubble-bot);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 14px;
    border-top-left-radius: 2px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    animation: typingPulse 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.chat-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.chat-input {
    flex-grow: 1;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    border-color: var(--aquamarine);
}

.btn-send {
    background: var(--accent-gradient);
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #080c14;
    transition: transform 0.2s ease;
}

.btn-send:hover {
    transform: scale(1.03);
}

/* Right Panel: Lead Profiling Live Panel */
.profiling-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-score-box {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 242, 254, 0.02);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 14px;
}

body.light-theme .profile-score-box {
    background-color: rgba(2, 132, 199, 0.02);
    border-color: rgba(2, 132, 199, 0.15);
}

.score-radial {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.05);
    border-top-color: var(--aquamarine);
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--aquamarine);
    transition: all 0.5s ease;
}

body.light-theme .score-radial {
    border-color: rgba(0,0,0,0.06);
    border-top-color: #0284c7;
    color: #0284c7;
}

.score-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profiling-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
}

.profile-item-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.profile-item-val {
    color: var(--text-primary);
    font-weight: 600;
    max-width: 60%;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sync-status-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.sync-pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.sync-synced {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.15);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.1); }
    50% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
}

/* Config Section Styles */
.config-container {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    color: var(--text-primary);
    outline: none;
    font-size: 13px;
    transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--aquamarine);
}

body.light-theme .form-input:focus, body.light-theme .form-select:focus, body.light-theme .form-textarea:focus {
    border-color: #0284c7;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Select options drop-down override styling (fixes contrast bugs in browsers) */
.form-select option {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.btn-primary {
    background: var(--accent-gradient);
    border: none;
    color: #080c14;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    align-self: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

/* Report Panel Styling */
.report-card-item {
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.light-theme .report-card-item {
    background-color: rgba(0, 0, 0, 0.01);
}

.report-card-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 242, 254, 0.1);
}

.report-card-item.active {
    background-color: rgba(0, 242, 254, 0.03);
    border-color: var(--aquamarine);
}

body.light-theme .report-card-item.active {
    background-color: rgba(2, 132, 199, 0.05);
    border-color: #0284c7;
}

.report-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: capitalize;
}

.report-card-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Markdown Rendering in Report view */
#report-view-body h1, #report-view-body h2, #report-view-body h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}
#report-view-body h1 { font-size: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
#report-view-body h2 { font-size: 16px; }
#report-view-body h3 { font-size: 14px; }
#report-view-body p { margin-bottom: 12px; color: var(--text-secondary); }
#report-view-body ul { margin-left: 20px; margin-bottom: 12px; color: var(--text-secondary); }
#report-view-body li { margin-bottom: 6px; }
#report-view-body strong { color: var(--text-primary); }
#report-view-body blockquote {
    border-left: 3px solid var(--aquamarine);
    padding-left: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
body.light-theme #report-view-body blockquote {
    border-left-color: #0284c7;
}

/* PDF Printable Sheet styling wrapper */
.report-print-sheet {
    padding: 30px 40px !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.report-print-sheet h1, .report-print-sheet h2, .report-print-sheet h3 {
    color: #1e3a8a !important; /* Elegant Navy Headers */
    font-family: 'Outfit', sans-serif !important;
}

.report-print-sheet h1 {
    font-size: 22px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 8px !important;
}

.report-print-sheet p, .report-print-sheet li {
    color: #334155 !important; /* Charcoal text */
    font-size: 12px !important;
}

.report-print-sheet strong {
    color: #0f172a !important;
}

.report-print-sheet blockquote {
    border-left: 3px solid #3b82f6 !important;
    background-color: #f8fafc !important;
    padding: 10px 15px !important;
    color: #475569 !important;
}

.report-print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #cbd5e1;
}

.report-print-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-print-logo {
    height: 35px;
    object-fit: contain;
}

.report-print-metadata {
    font-size: 10px;
    color: #64748b;
    text-align: right;
}
