/* -------------------------------------------------------------
 * BrainForge AI - Styling System
 * Premium Light Theme with Purple and Blue Accents
 * Custom Typography, Spacing, Cards, Timeline, and Loaders
 * ------------------------------------------------------------- */

/* --- CSS VARIABLES & TOKENS --- */
:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Color Palette */
    --primary: #6366f1;        /* Indigo */
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;
    
    --secondary: #8b5cf6;      /* Violet/Purple */
    --secondary-hover: #7c3aed;
    --secondary-light: #f5f3ff;
    
    --blue: #3b82f6;
    --blue-light: #eff6ff;
    --cyan: #06b6d4;
    --cyan-light: #ecfeff;
    --orange: #f97316;
    --orange-light: #fff7ed;
    --green: #10b981;
    --green-light: #ecfdf5;
    --red: #ef4444;
    --red-light: #fef2f2;
    
    --bg-app: #f8fafc;          /* Slate 50 */
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;      /* Dark Slate 900 */
    --bg-sidebar-active: #1e293b;
    
    --border-color: #e2e8f0;    /* Slate 200 */
    --border-focus: #a5b4fc;    /* Light Indigo */
    
    --text-primary: #0f172a;    /* Slate 900 */
    --text-secondary: #475569;  /* Slate 600 */
    --text-muted: #64748b;      /* Slate 500 */
    --text-light: #f8fafc;
    
    /* Shadows & Border Radius */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(99, 102, 241, 0.05), 0 8px 10px -6px rgba(99, 102, 241, 0.05);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- DARK THEME OVERRIDES --- */
.dark-theme {
    --bg-app: #0b0f19;          /* Deep dark slate */
    --bg-card: #151e2e;         /* Dark card background */
    --bg-sidebar: #070a13;      /* Deepest slate for sidebar */
    --bg-sidebar-active: #1d273a;
    
    --border-color: #243049;    /* Darker slate borders */
    --border-focus: #818cf8;    /* Lighter Indigo for dark mode */
    
    --text-primary: #f1f5f9;    /* Off-white primary text */
    --text-secondary: #cbd5e1;  /* Slate 300 text */
    --text-muted: #8295b4;      /* Muted text color */
    
    --primary-light: rgba(99, 102, 241, 0.18);
    --secondary-light: rgba(139, 92, 246, 0.18);
    --blue-light: rgba(59, 130, 246, 0.18);
    --cyan-light: rgba(6, 182, 212, 0.18);
    --orange-light: rgba(249, 115, 22, 0.18);
    --green-light: rgba(16, 185, 129, 0.18);
    --red-light: rgba(239, 68, 68, 0.18);
}

.dark-theme .sandbox-chart-container {
    background-color: var(--bg-card) !important;
}

.dark-theme .responsible-ai-card {
    background: linear-gradient(to bottom, var(--bg-card), rgba(99, 102, 241, 0.05)) !important;
}

/* --- THEME TOGGLE ELEMENT --- */
.btn-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-left: 12px;
}

.btn-theme-toggle:hover {
    background-color: var(--primary-light);
    color: var(--primary-hover);
    border-color: rgba(99, 102, 241, 0.2);
}

.sun-icon {
    display: none;
}
.moon-icon {
    display: block;
}

.dark-theme .sun-icon {
    display: block;
    color: var(--orange);
}
.dark-theme .moon-icon {
    display: none;
}

/* --- BASE STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-app);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* --- APP CONTAINER LAYOUT --- */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
    background-color: var(--bg-sidebar);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 10;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.logo-icon {
    font-size: 22px;
}

.logo-accent {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-actions {
    padding: 20px 24px 10px;
}

.btn-new-idea {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    transition: var(--transition-smooth);
}

.btn-new-idea:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px 24px;
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 12px 12px 6px;
    font-weight: 700;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    position: relative;
    padding-right: 6px;
}

.history-item:hover {
    background-color: var(--bg-sidebar-active);
}

.history-item.active {
    background-color: var(--primary-hover);
    color: white;
}

.history-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    flex: 1;
    overflow: hidden;
}

.history-icon {
    font-size: 16px;
}

.history-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.history-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.history-item.active .history-date {
    color: rgba(255, 255, 255, 0.7);
}

.delete-form {
    opacity: 0;
    transition: var(--transition-smooth);
}

.history-item:hover .delete-form {
    opacity: 1;
}

.btn-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-delete:hover {
    color: var(--red);
    background-color: rgba(239, 68, 68, 0.1);
}

.history-empty {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 24px 12px;
    line-height: 1.6;
}

/* --- MAIN CONTENT AREA --- */
.main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- TOP NAVIGATION BAR --- */
.top-nav {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
}

.breadcrumb-app {
    color: var(--text-secondary);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--primary);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    background-color: var(--bg-app);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    background-color: var(--green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--green);
}

/* --- CONTENT BODY --- */
.content-body {
    flex: 1;
    padding: 40px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* --- FOOTER --- */
.app-footer {
    padding: 24px 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* --- DASHBOARD HERO --- */
.dashboard-hero {
    margin-bottom: 40px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 800px;
    line-height: 1.6;
}

/* --- COMMON CARDS --- */
.form-container-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
    padding: 32px;
    margin-bottom: 40px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
}

.card-icon {
    font-size: 24px;
}

/* --- FORM LAYOUT --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

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

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 15px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-app);
    transition: var(--transition-smooth);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-group textarea {
    resize: vertical;
}

.field-help {
    font-size: 12px;
    color: var(--text-muted);
}

.field-error {
    font-size: 12px;
    color: var(--red);
    font-weight: 500;
    min-height: 18px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

/* --- INFO CARD GRID --- */
.info-section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 24px;
    transition: var(--transition-smooth);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 24px;
    margin-bottom: 12px;
    display: inline-block;
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- ALERTS --- */
.alert-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.error-message {
    background-color: var(--red-light);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

.alert-icon {
    font-size: 18px;
    line-height: 1;
}

.hidden {
    display: none !important;
}

/* --- DETAILED REPORT LAYOUT --- */
.project-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.project-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.header-info-main h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin: 6px 0;
}

.project-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: var(--bg-app);
    color: var(--text-primary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 32px;
    align-items: start;
}

.dashboard-column-left,
.dashboard-column-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dashboard-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.dashboard-card .card-body {
    padding: 24px 32px;
}

/* --- STEP 1: IDEA CLARIFICATION --- */
.inputs-summary-box {
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.inputs-summary-box h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
}

.inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-stat.full-width {
    grid-column: span 2;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

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

.clarification-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.clarify-item h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.clarify-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.assumptions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 4px;
}

.assumptions-list li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.assumptions-list li::before {
    content: "•";
    color: var(--secondary);
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 4px;
    top: -2px;
}

/* --- STEP 2: FEASIBILITY ANALYSIS --- */
.feasibility-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: center;
}

.feasibility-scores-bars {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.progress-score-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.score-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.score-badge {
    font-size: 12px;
    font-weight: 700;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
}

.progress-track {
    height: 8px;
    background-color: var(--bg-app);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
}

.track-large {
    height: 12px;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
}

.fill-purple { background-color: var(--secondary); }
.fill-blue { background-color: var(--blue); }
.fill-cyan { background-color: var(--cyan); }
.fill-gradient { background: linear-gradient(90deg, var(--primary), var(--secondary)); }

.score-rationale {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.overall-wrapper {
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.overall-badge {
    background-color: var(--primary-light);
    color: var(--primary-hover);
    border-color: rgba(99, 102, 241, 0.2);
    font-size: 14px;
}

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.feasibility-chart-container {
    height: 250px;
    position: relative;
}

/* --- STEP 3: RISK ASSESSMENT --- */
.risks-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.risk-card {
    background-color: var(--bg-app);
    border-radius: var(--radius-md);
    padding: 20px;
    border-left: 4px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.risk-border-purple { border-left-color: var(--secondary); }
.risk-border-blue { border-left-color: var(--blue); }
.risk-border-cyan { border-left-color: var(--cyan); }
.risk-border-orange { border-left-color: var(--orange); }

.risk-card-header {
    display: flex;
}

.risk-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
}

.badge-purple { color: var(--secondary-hover); background-color: var(--secondary-light); }
.badge-blue { color: var(--blue); background-color: var(--blue-light); }
.badge-cyan { color: #0891b2; background-color: var(--cyan-light); }
.badge-orange { color: #c2410c; background-color: var(--orange-light); }

.risk-desc {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.mitigation-block {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.mitigation-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--green);
    display: block;
    margin-bottom: 4px;
}

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

/* --- STEP 4: SCENARIO SIMULATION --- */
.scenarios-layout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.scenario-panel {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.scenario-panel-header h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

.probability-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.prob-num {
    font-size: 15px;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1.1;
}

.prob-label {
    font-size: 8px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.bg-green-light { background-color: var(--green-light); color: var(--green); }
.bg-blue-light { background-color: var(--blue-light); color: var(--blue); }
.bg-red-light { background-color: var(--red-light); color: var(--red); }

.scenario-panel-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    background-color: var(--bg-card);
}

.scenario-panel-body h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.scenario-panel-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.driver-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.driver-tags li {
    font-size: 11px;
    font-weight: 500;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.panel-optimistic { border-top: 4px solid var(--green); }
.panel-realistic { border-top: 4px solid var(--blue); }
.panel-pessimistic { border-top: 4px solid var(--orange); }

/* --- STEP 6: TODAY'S ACTION BANNER --- */
.action-banner-card {
    background: linear-gradient(135deg, var(--bg-sidebar), var(--bg-sidebar-active));
    color: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.action-banner-card::before {
    content: "⚡";
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 160px;
    opacity: 0.05;
    pointer-events: none;
}

.action-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 6px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.action-banner-content h2 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--border-focus);
    margin-bottom: 10px;
}

.action-highlight-box {
    background-color: rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--secondary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 14px;
}

.action-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.action-incentive {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- STEP 5: ROADMAP TIMELINE --- */
.roadmap-timeline-flow {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    padding-left: 20px;
    margin-top: 10px;
}

.roadmap-timeline-flow::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-milestone {
    display: flex;
    gap: 24px;
    position: relative;
}

.milestone-marker {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg-card);
}

.bg-purple { background-color: var(--secondary); }
.bg-blue { background-color: var(--blue); }
.bg-cyan { background-color: var(--cyan); }

.milestone-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.milestone-period {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.milestone-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.milestone-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.task-checkbox-item input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.task-checkbox-item label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.task-checkbox-item input[type="checkbox"]:checked + label {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* --- RESPONSIBLE AI SECTION --- */
.responsible-ai-card {
    border-color: var(--border-focus);
}

.responsible-ai-card .border-none {
    border-bottom: none;
    margin-bottom: 12px;
}

.confidence-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

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

.confidence-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.level-high { background-color: var(--green-light); color: var(--green); }
.level-medium { background-color: var(--blue-light); color: var(--blue); }
.level-low { background-color: var(--orange-light); color: var(--orange); }

.disclaimer-alert {
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.disclaimer-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.disclaimer-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
}

/* --- LOADING OVERLAY --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.85); /* Dark transparent backdrop */
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.loading-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 480px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.loading-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 8px;
}

.loading-step {
    font-size: 14px;
    color: var(--text-secondary);
    min-height: 20px;
    margin-bottom: 20px;
}

.loading-progress-bar {
    height: 6px;
    background-color: var(--bg-app);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.loading-progress {
    height: 100%;
    width: 10%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.loading-indicators {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    background-color: var(--bg-app);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-color);
}

.loading-indicators .indicator {
    font-size: 13px;
    color: var(--text-muted);
    padding-left: 24px;
    position: relative;
}

.loading-indicators .indicator::before {
    content: "";
    width: 8px;
    height: 8px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    position: absolute;
    left: 4px;
    top: 4px;
}

.loading-indicators .indicator.active {
    color: var(--primary);
    font-weight: 600;
}

.loading-indicators .indicator.active::before {
    border-color: var(--primary);
    background-color: var(--primary);
    box-shadow: 0 0 6px var(--primary);
}

.loading-indicators .indicator.done {
    color: var(--green);
}

.loading-indicators .indicator.done::before {
    border-color: var(--green);
    background-color: var(--green);
}

/* Spinner Animation */
.spinner-container {
    width: 60px;
    height: 60px;
    position: relative;
    margin: 0 auto;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    background-color: var(--secondary);
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%, 100% { 
        transform: scale(0.0);
    } 50% { 
        transform: scale(1.0);
    }
}

/* --- RESPONSIVENESS (MOBILE) --- */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .sidebar-nav {
        max-height: 200px;
    }
    
    .top-nav {
        padding: 16px 20px;
    }
    
    .content-body {
        padding: 24px 20px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .scenarios-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-section-grid {
        grid-template-columns: 1fr;
    }
    
    .feasibility-grid {
        grid-template-columns: 1fr;
    }
    
    .feasibility-chart-container {
        height: 200px;
    }
    
    .risks-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* --- TEAM DETAILS DROPDOWN --- */
.team-dropdown-container {
    position: relative;
    margin-left: 12px;
}

.btn-team-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-team-info:hover {
    background-color: var(--primary-light);
    color: var(--primary-hover);
    border-color: rgba(99, 102, 241, 0.2);
}

.btn-team-info-text {
    font-family: var(--font-heading);
}

.team-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-dropdown-header {
    background-color: var(--bg-app);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.team-dropdown-header h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.team-dropdown-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-info-item .info-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.team-info-item .info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.team-links-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.team-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.team-social-link.github:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.team-social-link.linkedin:hover {
    background-color: #f0f7ff;
    color: #0077b5;
    border-color: #c2e0ff;
}

/* --- HACKATHON UPGRADE FEATURES --- */

.readiness-container {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 16px;
    flex-wrap: wrap;
    transition: var(--transition-smooth);
}

.circular-progress-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.assumptions-validator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 12px;
}

.sandbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 24px;
}

.sandbox-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sandbox-metrics {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.sandbox-chart-container {
    position: relative;
    height: 280px;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
    transition: var(--transition-smooth);
}

.responsible-ai-card {
    border-color: var(--border-focus);
    background: linear-gradient(to bottom, var(--bg-card), #faf5ff);
}

.confidence-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    transition: var(--transition-smooth);
}

.disclaimer-alert {
    background-color: var(--bg-app);
    border-left: 4px solid var(--primary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

/* Custom range input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    height: 6px;
    border-radius: var(--radius-full);
    outline: none;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transition: transform 0.1s ease, background-color 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--primary-hover);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.25);
}

/* Responsive improvements for Hackathon upgrades */
@media (max-width: 640px) {
    .readiness-container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 8px 0;
    }
    .sandbox-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SECOND BRAIN CAPABILITIES --- */

/* Mentor Debate styles */
#mentor-debate-section {
    border-color: rgba(99, 102, 241, 0.15);
}

.debate-perspectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.debate-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.debate-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.builder-card {
    border-top: 4px solid var(--primary);
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.02), var(--bg-card));
}

.investor-card {
    border-top: 4px solid var(--secondary);
    background: linear-gradient(to bottom, rgba(139, 92, 246, 0.02), var(--bg-card));
}

.engineer-card {
    border-top: 4px solid var(--cyan);
    background: linear-gradient(to bottom, rgba(6, 182, 212, 0.02), var(--bg-card));
}

.debate-agreements-panel {
    border-top: 1.5px solid var(--border-color);
    padding-top: 20px;
}

/* Blind Spot styles */
#blind-spots-section {
    border-color: rgba(249, 115, 22, 0.25);
}

.blind-spot-card {
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-left-width: 4px;
    padding: 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth);
}

.blind-spot-card:hover {
    transform: translateX(4px);
}

/* Opportunity Cost styles */
#opportunity-cost-section {
    border-color: rgba(16, 185, 129, 0.15);
}

.net-score-container {
    background-color: var(--bg-app);
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.opportunity-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.opp-table-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.opp-table-card ul {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: white;
    list-style: none;
    margin: 0;
    flex: 1;
}

.opp-table-card ul li {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.opp-summary-panel {
    border-top: 1.5px solid var(--border-color);
    padding-top: 18px;
    margin-top: 24px;
}

/* --- CHATBOT WIDGET STYLES --- */

/* Floating Chat Trigger Button */
.chatbot-trigger-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.chatbot-trigger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 28px -4px rgba(99, 102, 241, 0.5);
}

.chatbot-icon {
    font-size: 26px;
}

.chatbot-badge-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: var(--green);
    border: 2px solid white;
    border-radius: 50%;
}

/* Chatbot Panel Container */
.chatbot-panel-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 520px;
    border-radius: var(--radius-lg);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatbotPanelFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes chatbotPanelFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Chatbot Header */
.chatbot-header {
    background: linear-gradient(135deg, var(--bg-sidebar), var(--bg-sidebar-active));
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-header-avatar {
    font-size: 24px;
}

.chatbot-header h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.chatbot-status-indicator {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.chatbot-minimize-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 4px;
}

.chatbot-minimize-btn:hover {
    color: white;
}

/* Messages Logs Area */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--bg-app);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.45;
    position: relative;
    box-shadow: var(--shadow-sm);
    word-break: break-word;
}

.chat-message p {
    margin: 0;
}

.user-msg {
    align-self: flex-end;
    background-color: var(--primary);
    color: white;
    border-bottom-right-radius: 2px;
}

.coach-msg {
    align-self: flex-start;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
    border: 1px solid var(--border-color);
}

.chat-time {
    display: block;
    font-size: 9px;
    margin-top: 6px;
    text-align: right;
    opacity: 0.6;
}

.user-msg .chat-time {
    color: rgba(255, 255, 255, 0.8);
}

.chat-welcome-card {
    background-color: var(--bg-card);
    border: 1.5px dashed var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
}

.chat-welcome-card h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary);
}

.chat-welcome-card p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Starter Prompts Area */
.chatbot-starter-prompts {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 16px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    scrollbar-width: none; /* Hide standard Firefox scrollbars */
}

.chatbot-starter-prompts::-webkit-scrollbar {
    display: none; /* Hide Chrome scrollbars */
}

.starter-prompt-pill {
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    background-color: var(--bg-app);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
}

.starter-prompt-pill:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Footer disclaimer notice */
.chatbot-footer-notice {
    background-color: var(--bg-card);
    padding: 8px 16px;
    font-size: 9.5px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    line-height: 1.35;
    text-align: center;
}

/* Input Row Form */
.chatbot-input-form {
    display: flex;
    background-color: var(--bg-card);
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    gap: 10px;
}

.chatbot-input-form input[type="text"] {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    background-color: var(--bg-app);
    transition: border-color 0.2s;
}

.chatbot-input-form input[type="text"]:focus {
    border-color: var(--primary);
}

#chatbot-send-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background-color: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

#chatbot-send-btn:hover {
    background-color: var(--primary-hover);
}

/* Typing Indicator Animation */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 16px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
    animation: chatbotTyping 1.4s infinite both;
}

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

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

@keyframes chatbotTyping {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Mobile Rules */
@media (max-width: 480px) {
    .chatbot-panel-container {
        width: calc(100% - 32px);
        height: calc(100% - 32px);
        bottom: 16px;
        right: 16px;
    }
}


