/* START OF FILE public/bnn/bnn-styles.css */
:root {
    --color-primary: #4A148C;       /* Deep Indigo / Cosmic Purple */
    --color-primary-dark: #2E0057;
    --color-secondary: #CE93D8;     /* Soft Lavender */
    --color-accent: #FFD700;        /* Gold */
    --color-background: #F3E5F5;    /* Light Lavender Background */
    --color-surface: #FFFFFF;
    --color-surface-alt: #FAF0FF;
    --color-border: #CE93D8;
    --color-divider: #EDE7F6;
    --color-text-dark: #1A0033;
    --color-text-medium: #4A148C;
    --color-text-light: #7B1FA2;
    --color-error: #B71C1C;
    --color-error-bg: #FFEBEE;
    --color-jup: #FF8F00;   /* Jupiter - Amber */
    --color-sat: #37474F;   /* Saturn - Dark Grey */
    --color-rah: #880E4F;   /* Rahu - Dark Pink */
    --color-ket: #1B5E20;   /* Ketu - Dark Green */
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    background-color: var(--color-background);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: var(--color-text-medium);
}

.astrology-dashboard {
    max-width: 1600px;
    margin: 25px auto;
    padding: 25px;
    background-color: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(74, 20, 140, 0.12);
}

.dashboard-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* ─── Left Panel ─────────────────────────────────────────────────────────── */
.left-panel {
    flex: 1;
    min-width: 380px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Scroll the left column (form + D1 + planet table) independently of the report */
    max-height: 88vh;
    overflow-y: auto;
    padding-right: 8px;
}
.left-panel::-webkit-scrollbar { width: 8px; }
.left-panel::-webkit-scrollbar-track { background: var(--color-surface); }
.left-panel::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 10px;
    border: 2px solid var(--color-surface);
}

h1 {
    color: var(--color-primary);
    font-size: 30px;
    margin: 0 0 4px 0;
    text-align: center;
    letter-spacing: 1px;
}

.subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-light);
    margin: 0 0 20px 0;
    font-style: italic;
}

.birth-chart-form {
    background: var(--color-surface);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(74, 20, 140, 0.1);
    border: 1px solid var(--color-border);
}

.form-row { display: flex; gap: 10px; margin-bottom: 10px; }
.form-section { margin-bottom: 3px; flex: 1; }
.form-section h3 { font-size: 13px; color: var(--color-text-dark); margin: 0 0 4px 0; font-weight: 600; }
.input-group { display: flex; gap: 5px; }
.input-group input, input[type="text"] {
    width: 100%; padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 4px; font-size: 14px;
    background-color: var(--color-surface-alt);
    color: var(--color-text-dark);
}
.input-group input:focus, input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(74, 20, 140, 0.15);
}
.coordinates-display {
    margin-top: 6px; font-size: 12px;
    color: var(--color-text-light);
    display: flex; justify-content: space-between;
}

.generate-btn {
    background: var(--color-primary);
    color: white; border: none;
    padding: 10px 20px; border-radius: 4px;
    cursor: pointer; font-size: 14px;
    width: 100%;
    transition: background-color 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.generate-btn:hover:not(:disabled) { background: var(--color-primary-dark); }
.generate-btn:disabled { background-color: #ccc; cursor: not-allowed; opacity: 0.7; }
.generate-btn.small { padding: 8px 15px; font-size: 14px; width: auto; }

/* ─── Loading / Error ────────────────────────────────────────────────────── */
#loadingIndicator, #aiLoading {
    text-align: center; padding: 10px;
    color: var(--color-text-light);
}
#aiLoading .spinner.small { margin-bottom: 5px; }
.spinner {
    border: 4px solid rgba(74, 20, 140, 0.2);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%; width: 30px; height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}
.spinner.small { width: 20px; height: 20px; border-width: 3px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#errorMessage {
    color: var(--color-error);
    padding: 12px;
    background: var(--color-error-bg);
    border: 1px solid var(--color-error);
    border-radius: 4px;
    margin-top: 15px;
}

/* ─── Chart Container ────────────────────────────────────────────────────── */
.chart-section h2 {
    color: var(--color-primary); font-size: 16px;
    margin: 0 0 10px 0; border-bottom: 1px solid var(--color-border);
    padding-bottom: 6px;
}
.chart-display { text-align: center; }
.chart-display svg { max-width: 100%; height: auto; }

/* ─── Right Panel ────────────────────────────────────────────────────────── */
.right-panel {
    flex: 2.5;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 88vh;
    overflow-y: auto;
    padding-right: 15px;
}
.right-panel::-webkit-scrollbar { width: 8px; }
.right-panel::-webkit-scrollbar-track { background: var(--color-surface); }
.right-panel::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 10px;
    border: 2px solid var(--color-surface);
}

/* ─── AI Analysis Container ──────────────────────────────────────────────── */
.ai-analysis-container {
    background-color: var(--color-surface);
    padding: 20px; border-radius: 8px;
    box-shadow: 0 3px 10px rgba(74, 20, 140, 0.08);
    border: 1px solid var(--color-border);
    display: flex; flex-direction: column; flex-shrink: 0;
}
.ai-analysis-container > h2 {
    color: var(--color-text-dark); font-size: 22px;
    margin: 0 0 18px 0; padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

/* ─── Language Switch (form-embedded, medical-KP style) ─────────────────── */
.language-switch {
    display: flex;
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 5px;
}
.lang-btn {
    flex: 1; padding: 8px; border: none;
    background-color: var(--color-surface);
    color: var(--color-primary);
    cursor: pointer; font-size: 14px; font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}
.lang-btn:first-child { border-right: 1px solid var(--color-primary); }
.lang-btn.active {
    background-color: var(--color-primary);
    color: white; font-weight: 600;
}

/* ─── Collapsible Items ──────────────────────────────────────────────────── */
.ai-collapsible-item {
    background: var(--color-surface);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(74, 20, 140, 0.08);
    border: 1px solid var(--color-border);
    overflow: hidden;
    margin-bottom: 15px;
}
.ai-collapsible-item:last-child { margin-bottom: 0; }

.collapsible-trigger {
    background-color: var(--color-divider);
    color: var(--color-text-dark);
    cursor: pointer; padding: 14px 18px;
    width: 100%; border: none; text-align: left;
    font-size: 17px; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
}
.ai-collapsible-item.active .collapsible-trigger {
    background-color: #EDE7F6;
    color: var(--color-primary);
}
.collapsible-trigger .icon { transition: transform 0.3s ease-out; }
.ai-collapsible-item.active .collapsible-trigger .icon { transform: rotate(180deg); }

.collapsible-content {
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    max-height: 0;
    padding: 0;
}
.ai-collapsible-item.active .collapsible-content { overflow: visible; }

/* AI content padding */
#aiInitialAnalysisContent, .ai-chat-container {
    padding: 15px;
}

.ai-message { margin-bottom: 14px; }
.ai-intro p { color: var(--color-text-light); font-style: italic; }
.ai-error { color: var(--color-error); background: var(--color-error-bg); padding: 10px; border-radius: 4px; }
.ai-question {
    background: var(--color-divider);
    padding: 8px 12px; border-radius: 4px;
    font-style: italic; font-size: 14px;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.ai-answer-scroll-wrapper { padding: 15px; }
.collapsible-inner-wrapper { padding: 15px; }

/* AI response message display area */
#aiResponse {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 10px;
    border: 1px solid var(--color-divider);
    border-radius: 6px;
    background-color: var(--color-surface-alt);
    padding: 10px;
}
#aiResponse::-webkit-scrollbar { width: 6px; }
#aiResponse::-webkit-scrollbar-track { background: var(--color-surface-alt); }
#aiResponse::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 6px;
}

/* AI content typography */
.ai-content h1, .ai-content h2 { color: var(--color-primary); margin-top: 20px; }
.ai-content h3, .ai-content h4 { color: var(--color-text-dark); margin-top: 14px; }
.ai-content table {
    width: 100%; border-collapse: collapse;
    margin: 12px 0; font-size: 13px;
}
.ai-content table td, .ai-content table th {
    border: 1px solid var(--color-border);
    padding: 7px 10px; text-align: left;
}
.ai-content table th {
    background-color: var(--color-divider);
    font-weight: 600; color: var(--color-text-dark);
}
.ai-content ul, .ai-content ol { margin: 8px 0; padding-left: 22px; }
.ai-content li { margin-bottom: 4px; }
.ai-content strong { color: var(--color-primary-dark); }
.ai-content p { margin: 8px 0; line-height: 1.6; }

/* ─── Q&A Input ──────────────────────────────────────────────────────────── */
.ai-input-container {
    display: flex; gap: 8px; margin-top: 12px;
}
.ai-input-container input {
    flex: 1; padding: 8px 12px;
    border: 1px solid var(--color-border); border-radius: 4px; font-size: 14px;
}
.quick-questions {
    margin-top: 14px;
}
.quick-questions p {
    font-size: 12px; color: var(--color-text-light);
    margin: 0 0 8px 0; font-weight: 600;
}
.quick-questions { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-questions p { width: 100%; }
.quick-question {
    background: var(--color-divider);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    padding: 5px 10px; border-radius: 20px;
    font-size: 12px; cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.quick-question:hover {
    background: var(--color-primary);
    color: white;
}

/* ─── Data Sections ──────────────────────────────────────────────────────── */
/* ─── Right-panel Tabs ───────────────────────────────────────────────────── */
.rp-tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 4px;
    background: var(--color-surface);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.rp-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: var(--color-text-light, #6A4A8C);
    transition: all 0.25s ease;
    white-space: nowrap;
}
.rp-tab:hover {
    color: var(--color-primary);
    background: var(--color-surface-alt);
}
.rp-tab.active {
    color: var(--color-primary);
    font-weight: 700;
    border-bottom-color: var(--color-primary);
    background: var(--color-surface);
}
.rp-tab-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 700px) {
    .rp-tab { font-size: 12px; padding: 10px 8px; }
}

.data-section {
    background: var(--color-surface);
    padding: 18px; border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 6px rgba(74, 20, 140, 0.06);
}
.data-section h2 {
    color: var(--color-primary); font-size: 17px;
    margin: 0 0 12px 0; padding-bottom: 8px;
    border-bottom: 1px solid var(--color-divider);
}

.data-display { overflow-x: auto; }
.data-display table {
    width: 100%; border-collapse: collapse;
    font-size: 13px;
}
.data-display table th {
    background-color: var(--color-primary);
    color: white; padding: 8px 10px;
    text-align: left; font-weight: 600;
}
.data-display table td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--color-divider);
    color: var(--color-text-dark);
}
.data-display table tr:last-child td { border-bottom: none; }
.data-display table tr:nth-child(even) td {
    background-color: var(--color-surface-alt);
}
.data-display table tr:hover td { background-color: var(--color-divider); }

/* Planet badge chips */
.planet-badge {
    display: inline-block;
    padding: 2px 8px; border-radius: 12px;
    font-size: 11px; font-weight: 700;
    color: white; margin: 1px;
}
.planet-badge.jup { background-color: var(--color-jup); }
.planet-badge.sat { background-color: var(--color-sat); }
.planet-badge.rah { background-color: var(--color-rah); }
.planet-badge.ket { background-color: var(--color-ket); }
.planet-badge.sun { background-color: #f59e0b; }
.planet-badge.mon { background-color: #3b82f6; }
.planet-badge.mar { background-color: #ef4444; }
.planet-badge.mer { background-color: #10b981; }
.planet-badge.ven { background-color: #ec4899; }

/* BNN Layer cards */
.bnn-layer-card {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: 6px; padding: 12px;
    margin-bottom: 12px;
}
.bnn-layer-card h3 {
    color: var(--color-primary); font-size: 14px;
    margin: 0 0 10px 0;
    border-bottom: 1px solid var(--color-divider);
    padding-bottom: 6px;
}
.bnn-layer-card p {
    font-size: 13px; color: var(--color-text-dark);
    margin: 4px 0; line-height: 1.5;
}
.bnn-layer-card strong { color: var(--color-primary); }

/* Prediction card */
.prediction-card {
    background: linear-gradient(135deg, var(--color-surface-alt), #F8F0FF);
    border: 1px solid var(--color-secondary);
    border-left: 4px solid var(--color-primary);
    border-radius: 6px; padding: 12px;
    margin-bottom: 10px;
}
.prediction-card .combo-label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--color-text-light); margin-bottom: 6px;
}
.prediction-card .combo-text {
    font-size: 13px; color: var(--color-text-dark);
    line-height: 1.6;
}

/* Vastu card */
.vastu-card {
    background: linear-gradient(135deg, #FFF9E6, #FFFDE7);
    border: 1px solid var(--color-accent);
    border-radius: 6px; padding: 12px;
    margin-bottom: 10px;
}
.vastu-card .vastu-direction {
    font-size: 12px; font-weight: 700;
    color: #E65100; text-transform: uppercase;
    margin-bottom: 6px;
}
.vastu-card .vastu-action {
    font-size: 13px; color: var(--color-text-dark);
    line-height: 1.6;
}

/* Progress bar for time-to-exit */
.progress-bar-container {
    background: var(--color-divider);
    border-radius: 4px; height: 6px;
    margin-top: 4px; overflow: hidden;
}
.progress-bar {
    height: 100%; border-radius: 4px;
    background: var(--color-primary);
    transition: width 0.5s ease;
}

/* Precise Sky Transit Trigger and Badge styling */
.trigger-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.trigger-badge.peak {
    background-color: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
}
.trigger-badge.active {
    background-color: #d1fae5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}
.trigger-badge.upcoming {
    background-color: #dbeafe;
    color: #3b82f6;
    border: 1px solid #bfdbfe;
}
.trigger-badge.neutral {
    background-color: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.timing-planet-card {
    border-left: 4px solid var(--color-primary) !important;
}

/* 12-Sign BNN Grid Matrix Styles */
.bnn-grid-table {
    min-width: 1400px;
    border-collapse: collapse;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(74, 20, 140, 0.08);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.bnn-grid-table th, .bnn-grid-table td {
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid var(--color-divider);
    font-size: 12px;
}
.bnn-grid-table tr:first-child th {
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
}
.bnn-grid-table .row-label {
    background-color: var(--color-surface-alt);
    color: var(--color-primary);
    font-weight: 700;
    text-align: left;
    min-width: 150px;
    position: sticky;
    left: 0;
    z-index: 10;
    border-right: 2px solid var(--color-border);
}
.bnn-grid-table .sign-fire {
    background-color: #fee2e2 !important;
    color: #9a3412 !important;
    font-weight: bold;
}
.bnn-grid-table .sign-earth {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    font-weight: bold;
}
.bnn-grid-table .sign-air {
    background-color: #e0f2fe !important;
    color: #075985 !important;
    font-weight: bold;
}
.bnn-grid-table .sign-water {
    background-color: #e0e7ff !important;
    color: #3730a3 !important;
    font-weight: bold;
}
.bnn-grid-table .planet-badge-mini {
    display: block;
    margin: 3px auto;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    max-width: 90px;
    text-align: center;
}
.bnn-grid-table .planet-badge-mini.jup { background-color: var(--color-jup); }
.bnn-grid-table .planet-badge-mini.sat { background-color: var(--color-sat); }
.bnn-grid-table .planet-badge-mini.rah { background-color: var(--color-rah); }
.bnn-grid-table .planet-badge-mini.ket { background-color: var(--color-ket); }
.bnn-grid-table .planet-badge-mini.sun { background-color: #f59e0b; }
.bnn-grid-table .planet-badge-mini.mon { background-color: #3b82f6; }
.bnn-grid-table .planet-badge-mini.mar { background-color: #ef4444; }
.bnn-grid-table .planet-badge-mini.mer { background-color: #10b981; }
.bnn-grid-table .planet-badge-mini.ven { background-color: #ec4899; }

/* ─── Compact Planet Positions table (left panel quick-reference) ─────────── */
.compact-planet-scroll {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: 6px;
}
.compact-planet-scroll::-webkit-scrollbar { width: 7px; }
.compact-planet-scroll::-webkit-scrollbar-track { background: var(--color-surface); }
.compact-planet-scroll::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 10px;
}
.compact-planet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
.compact-planet-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    padding: 6px 6px;
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.compact-planet-table tbody td {
    padding: 5px 5px;
    border-bottom: 1px solid var(--color-divider);
    vertical-align: top;
}
.compact-planet-table tbody tr:nth-child(even) { background: var(--color-surface-alt); }
.compact-planet-table .cpt-layer {
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    width: 50px;
}
.compact-planet-table .planet-badge-mini {
    display: inline-block;
    margin: 1px;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    white-space: nowrap;
}
.compact-planet-table .planet-badge-mini.jup { background-color: var(--color-jup); }
.compact-planet-table .planet-badge-mini.sat { background-color: var(--color-sat); }
.compact-planet-table .planet-badge-mini.rah { background-color: var(--color-rah); }
.compact-planet-table .planet-badge-mini.ket { background-color: var(--color-ket); }
.compact-planet-table .planet-badge-mini.sun { background-color: #f59e0b; }
.compact-planet-table .planet-badge-mini.mon { background-color: #3b82f6; }
.compact-planet-table .planet-badge-mini.mar { background-color: #ef4444; }
.compact-planet-table .planet-badge-mini.mer { background-color: #10b981; }
.compact-planet-table .planet-badge-mini.ven { background-color: #ec4899; }
.compact-planet-table .cpt-empty { color: var(--color-text-muted); font-size: 11px; }

.bnn-grid-table .promise-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    margin: 2px;
    white-space: nowrap;
}
.bnn-grid-table .promise-badge.good {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.bnn-grid-table .promise-badge.bad {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.bnn-grid-table .promise-badge.cautious {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}
.bnn-grid-table .promise-badge.neutral {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* ─── Progressive × Transit Combinations Panel ──────────────────────────── */
.combos-panel-wrap {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12px;
}
.combos-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-divider);
    align-items: center;
}
.combos-legend {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--color-text-light);
    font-size: 11px;
}
.legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.legend-dot.promised  { background: var(--color-jup); }
.legend-dot.nopromise { background: #3b82f6; }

.combos-split {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.combos-col {
    flex: 1;
    min-width: 0;
}
.combos-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--color-primary);
}
.combos-table-wrap {
    max-height: 320px;
    overflow-y: auto;
    border-radius: 4px;
    border: 1px solid var(--color-divider);
}
.combos-table {
    width: 100%;
    border-collapse: collapse;
}
.combos-table th {
    position: sticky;
    top: 0;
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 4px;
    text-align: center;
    white-space: nowrap;
    z-index: 2;
}
.combos-table td {
    padding: 4px 4px;
    border-bottom: 1px solid var(--color-divider);
    text-align: center;
    vertical-align: middle;
}
.combos-table tbody tr:last-child td { border-bottom: none; }
.combos-table tbody tr:hover { background: var(--color-surface-alt); }

/* Planet mini-badges in combos table */
.cpl-badge {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}
.cpl-badge.jup { background: var(--color-jup); }
.cpl-badge.sat { background: var(--color-sat); }
.cpl-badge.rah { background: var(--color-rah); }
.cpl-badge.ket { background: var(--color-ket); }
.cpl-badge.sun { background: #f59e0b; }
.cpl-badge.mon { background: #3b82f6; }
.cpl-badge.mar { background: #ef4444; }
.cpl-badge.mer { background: #10b981; }
.cpl-badge.ven { background: #ec4899; }
.cpl-badge.natal-badge { background: #6b7280; }
/* Transit no-promise planet badge (blue) */
.cpl-badge.trans-nopromise { background: #3b82f6; }

/* C / T type badges */
.combo-type-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.combo-type-c {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.combo-type-t {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.combo-sign {
    color: var(--color-text-light);
    font-size: 10px;
    white-space: nowrap;
}

/* Transit rows: promised = planet color bg tint, no-promise = blue tint */
.trans-promised-row { background: rgba(255,143,0,0.06); }
.trans-nopromise-row { background: rgba(59,130,246,0.05); }
.trans-promised-row:hover  { background: rgba(255,143,0,0.12) !important; }
.trans-nopromise-row:hover { background: rgba(59,130,246,0.10) !important; }

/* Responsive */
@media (max-width: 900px) {
    .dashboard-container { flex-direction: column; }
    .left-panel { max-width: 100%; min-width: unset; max-height: none; overflow-y: visible; padding-right: 0; }
    .right-panel { max-height: none; overflow-y: visible; padding-right: 0; }
    .combos-split { flex-direction: column; }
}

/* ─── BNN Enhanced Report Styles (.bnn-tx-*, ported from bnn-transit) ─────── */
.bnn-tx-report {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px 0;
}

/* ── Section Panels ── */
.bnn-tx-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(74, 20, 140, 0.07);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.bnn-tx-panel:hover {
    box-shadow: 0 6px 20px rgba(74, 20, 140, 0.14);
}
.bnn-tx-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #7B1FA2 100%);
    color: #fff;
    flex-wrap: wrap;
}
.bnn-tx-panel-body {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-dark);
}
.bnn-tx-panel-body > p:first-child { margin-top: 0; }
.bnn-tx-panel-body p { margin: 6px 0; }
.bnn-tx-panel-body h3, .bnn-tx-panel-body h4 {
    color: var(--color-primary);
    margin: 14px 0 6px;
    padding-bottom: 4px;
    border-bottom: 1px dashed var(--color-divider);
}
.bnn-tx-panel-body ul { padding-left: 20px; margin: 6px 0; }
.bnn-tx-panel-body li { margin-bottom: 4px; }
.bnn-tx-panel-body strong { color: var(--color-primary-dark); }
.bnn-tx-panel-body table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 10px 0; }
.bnn-tx-panel-body table th {
    background: var(--color-primary); color: #fff;
    padding: 7px 10px; text-align: left;
}
.bnn-tx-panel-body table td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--color-divider);
    color: var(--color-text-dark);
}
.bnn-tx-icon {
    font-size: 20px;
    line-height: 1;
}
.bnn-tx-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    flex: 1;
}
.bnn-tx-panel-header .bnn-tx-title { font-size: 15px; }

/* ── Per-theme header gradients for life-aspect deep dives ── */
.bnn-tx-panel[data-theme="marriage"]     .bnn-tx-panel-header { background: linear-gradient(90deg, #ad1457, #d81b60); }
.bnn-tx-panel[data-theme="children"]     .bnn-tx-panel-header { background: linear-gradient(90deg, #00695c, #00897b); }
.bnn-tx-panel[data-theme="career"]       .bnn-tx-panel-header { background: linear-gradient(90deg, #1565c0, #1e88e5); }
.bnn-tx-panel[data-theme="education"]    .bnn-tx-panel-header { background: linear-gradient(90deg, #e65100, #fb8c00); }
.bnn-tx-panel[data-theme="health"]       .bnn-tx-panel-header { background: linear-gradient(90deg, #2e7d32, #43a047); }
.bnn-tx-panel[data-theme="foreign"]      .bnn-tx-panel-header { background: linear-gradient(90deg, #006064, #00acc1); }
.bnn-tx-panel[data-theme="family"]       .bnn-tx-panel-header { background: linear-gradient(90deg, #4e342e, #6d4c41); }
.bnn-tx-panel[data-theme="spirituality"] .bnn-tx-panel-header { background: linear-gradient(90deg, #4527a0, #5e35b1); }
.bnn-tx-panel[data-theme="longevity"]    .bnn-tx-panel-header { background: linear-gradient(90deg, #37474f, #546e7a); }
.bnn-tx-panel[data-theme="character"]    .bnn-tx-panel-header { background: linear-gradient(90deg, #827717, #9e9d24); }
.bnn-tx-panel[data-theme="remedies"]     .bnn-tx-panel-header { background: linear-gradient(90deg, #b71c1c, #d32f2f); }
.bnn-tx-panel[data-theme="summary"]      .bnn-tx-panel-header { background: linear-gradient(90deg, #FF8F00, #FFB300); }
.bnn-tx-panel[data-theme="forecast"]     .bnn-tx-panel-header { background: linear-gradient(90deg, #283593, #3949ab); }

/* ── Confidence/Tier Badges ── */
.bnn-tx-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
}
.bnn-tx-badge.tier-veryhigh { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.bnn-tx-badge.tier-high     { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.bnn-tx-badge.tier-medium   { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.bnn-tx-badge.tier-moderate { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.bnn-tx-badge.tier-low      { background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; }

/* ── Sub-section blocks & titles ── */
.bnn-tx-section {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-divider);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 10px 0;
}
.bnn-tx-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

/* ── Callout note ── */
.bnn-tx-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}
.bnn-tx-note-icon { font-size: 16px; flex-shrink: 0; }

/* ── Convergence score badge ── */
.bnn-tx-conv-score {
    background: var(--color-primary);
    color: #fff;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
}

/* ── Convergence pills ── */
.bnn-tx-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.bnn-tx-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.bnn-tx-pill.pill-ok  { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.bnn-tx-pill.pill-off { background: #f3f4f6; color: #9ca3af; border: 1px solid #d1d5db; }

/* ── Primary driver rows ── */
.bnn-tx-driver-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid var(--color-divider);
}
.bnn-tx-driver-row:last-child { border-bottom: none; }
.bnn-tx-driver-rank {
    min-width: 20px;
    height: 20px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
.bnn-tx-driver-name { flex: 1; color: var(--color-text-dark); font-size: 13px; }
.bnn-tx-driver-chip {
    font-size: 11px;
    font-weight: 700;
    background: var(--color-divider);
    color: var(--color-text-muted);
    border-radius: 8px;
    padding: 2px 7px;
}

/* ── Convergence card wrapper ── */
.bnn-convergence-card {
    margin: 10px 0 16px;
    padding: 12px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-divider);
    border-left: 3px solid var(--color-primary);
    border-radius: 8px;
}

/* ── High-Probability Events block (Dasha + Progressive + Transit aligned) ── */
.bnn-hpe-block {
    margin: 18px 0 24px;
    padding: 18px;
    background: linear-gradient(135deg, var(--color-surface-alt), #ffffff);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(74, 20, 140, 0.08);
}
.bnn-hpe-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}
.bnn-hpe-intro {
    font-size: 13.5px;
    color: var(--color-text-dark);
    opacity: 0.85;
    margin: 0 0 14px 0;
    line-height: 1.5;
}
.bnn-hpe-none {
    padding: 12px 14px;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--color-text-dark);
    opacity: 0.8;
}
.bnn-hpe-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bnn-hpe-card {
    padding: 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(74, 20, 140, 0.05);
}
.bnn-hpe-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.bnn-hpe-icon { font-size: 20px; line-height: 1; }
.bnn-hpe-theme {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    flex: 1;
}
.bnn-hpe-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    white-space: nowrap;
}
.bnn-hpe-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.bnn-hpe-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}
.bnn-hpe-chip-do   { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }
.bnn-hpe-chip-prog { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.bnn-hpe-chip-tr   { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.bnn-hpe-means {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--color-text-dark);
}
.bnn-hpe-means strong { color: var(--color-primary); }

@media (max-width: 700px) {
    .bnn-hpe-block { padding: 14px; }
    .bnn-hpe-title { font-size: 16px; }
    .bnn-hpe-theme { font-size: 15px; }
}

/* ── Section navigation chips ── */
.bnn-rep-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: 10px;
}
.bnn-rep-nav-label {
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-text-light);
    margin-bottom: 2px;
}
.bnn-rep-nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    background: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.bnn-rep-nav-chip:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ── Planetary combination tags, e.g. [SAT + JUP] ── */
.bnn-combo-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    background: #ede7f6;
    color: #4527a0;
    border: 1px solid #b39ddb;
    white-space: nowrap;
    cursor: help;
    vertical-align: baseline;
}

/* ── Quick Summary: positive / warning bullets ── */
.bnn-tx-panel-body li.li-good {
    list-style: none;
    margin-left: -20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
}
.bnn-tx-panel-body li.li-warn {
    list-style: none;
    margin-left: -20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

/* ── Do's & Don'ts two-column grid ── */
.bnn-dodont-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0;
}
.bnn-dodont-col {
    flex: 1;
    min-width: 220px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-divider);
}
.bnn-dodont-col .dodont-head {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #fff;
}
.bnn-dodont-col.do .dodont-head { background: #16a34a; }
.bnn-dodont-col.dont .dodont-head { background: #dc2626; }
.bnn-dodont-col.do { background: #f0fdf4; }
.bnn-dodont-col.dont { background: #fef2f2; }
.bnn-dodont-col ul { list-style: none; padding: 8px 12px; margin: 0; }
.bnn-dodont-col li { margin-bottom: 6px; font-size: 13px; line-height: 1.5; }

/* ── Learning panels (How to read / Karakatwa reference) ── */
.bnn-learn-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.bnn-learn-table th {
    background: var(--color-primary); color: #fff;
    padding: 7px 10px; text-align: left; white-space: nowrap;
}
.bnn-learn-table td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--color-divider);
    color: var(--color-text-dark);
    vertical-align: top;
    line-height: 1.5;
}
.bnn-learn-term {
    font-weight: 700;
    color: var(--color-primary-dark);
    white-space: nowrap;
}

/* ── Mobile Responsive (enhanced report) ── */
@media (max-width: 600px) {
    .bnn-tx-panel-header { padding: 10px 12px; }
    .bnn-tx-panel-body { padding: 10px 12px; }
    .bnn-tx-badge { font-size: 10px; }
    .bnn-tx-title { font-size: 14px; }
    .bnn-dodont-grid { flex-direction: column; }
    .bnn-tx-panel-body table { display: block; overflow-x: auto; white-space: nowrap; }
}
/* END OF FILE public/bnn/bnn-styles.css */
