/* --- 1. VARIABLES --- */
:root {
    /* Themes */
    /* --bg-main: #f8f9fa; */
    --bg-main: #4a5568;
    --bg-panel: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #579ffb;
    --text-tertiary: #4a5568;
    /* --text-secondary: #4a5568; */
    --nav-bg: rgba(255, 255, 255, 0.8);
    --nav-border: rgba(0, 0, 0, 0.1);
	--bg-auth: #4a5568;
	--color-return: #4a5568;

    /* LCARS Colors */
    --lcars-gold: #FF9C00;
    --lcars-red: #CC0000;
    --lcars-purple: #CC99CC;
    --lcars-blue: #99CCFF;
    --lcars-tan: #FFCC99;

    /* Accents (Standard) */
    --accent-gold: #d4a017;
    --accent-red: #ce2828;
    --accent-blue: #006699;
    --accent-purple: #805ad5;

    /* System Fonts */
    --font-standard: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-lcars: 'Impact', 'Arial Narrow', 'Helvetica Neue', sans-serif;
    --font-mono: 'Consolas', 'Monaco', monospace;

    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 1.5rem;
}

/* Dark Mode / LCARS Overrides */
body.lcars-mode {
    --bg-main: #000000;
    --bg-panel: #111111;
    --text-primary: #cccccc;
    --text-secondary: #FFCC99;
    --nav-bg: transparent;
    --nav-border: transparent;
    --shadow: none;
    --radius: 0;
}

/* --- 2. RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-standard);
    transition: background-color 0.4s, color 0.4s;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}
body.lcars-mode { font-family: var(--font-lcars); letter-spacing: 0.05em; }

/* --- 3. UTILITIES --- */
.standard-only { display: block; }
.lcars-mode .standard-only { display: none; }
.lcars-text, .lcars-bar, .lcars-elbow-header, .lcars-top-bar, .lcars-filler { display: none; }
body.lcars-mode .lcars-text { display: inline; text-transform: uppercase; font-weight: bold; font-size: 1.2rem; }
body.lcars-mode .lcars-bar { display: block; }
body.lcars-mode .lcars-elbow-header { display: block; }
body.lcars-mode .lcars-top-bar { display: block; }
body.lcars-mode .lcars-filler { display: block; }

/* Colors */
.color-purple { background-color: var(--lcars-purple); color: var(--lcars-purple); }
.color-blue { background-color: var(--lcars-blue); color: var(--lcars-blue); }
.color-gold { background-color: var(--lcars-gold); color: var(--lcars-gold); }
.color-red { background-color: var(--lcars-red); color: var(--lcars-red); }

/* Text Colors */
.color-text-blue { color: var(--accent-blue); }
.color-text-purple { color: var(--accent-purple); }
.color-text-green { color: green; }
.color-text-gold { color: var(--accent-gold); }

body.lcars-mode .color-text-blue { color: var(--lcars-blue); }
body.lcars-mode .color-text-purple { color: var(--lcars-purple); }
body.lcars-mode .color-text-green { color: var(--lcars-blue); }
body.lcars-mode .color-text-gold { color: var(--lcars-gold); }

/* --- 4. LAYOUT --- */
/* Sidebar */
.sidebar {
    width: 16rem;
    padding: 1rem;
    position: fixed;
    height: 100%;
    display: flex;
    flex-direction: column;
	justify-content: space-between;
    background: var(--nav-bg);
    z-index: 50;
    transition: all 0.4s;
}
@media (max-width: 768px) { .sidebar { display: none; } }

/* .logo-area { padding: 1rem 0 2rem 1rem; display: flex; align-items: center; gap: 0.75rem; } */
.logo-area { display: flex; align-items: center; gap: 0.25rem; padding: 0rem 0rem 1rem 0rem; }
.logo-icon { width: 2.5rem; height: 2.5rem; background: linear-gradient(to bottom right, #2563eb, #1e40af); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; }
.logo-text h1 { font-size: 1.25rem; font-weight: 700; line-height: 1; }
.logo-text p { font-size: 0.75rem; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* LCARS Sidebar specific */
.lcars-elbow-header { height: 8rem; margin-bottom: 0.5rem; background: var(--lcars-gold); border-top-left-radius: 2rem; position: relative; }
.lcars-elbow-curve { position: absolute; bottom: 0.5rem; right: 0.5rem; text-align: right; font-weight: bold; font-size: 1.5rem; line-height: 1; color: black; }
.lcars-filler { flex-grow: 1; background: var(--lcars-blue); margin-top: 0.5rem; border-bottom-left-radius: 2rem; position: relative; }
.lcars-id { position: absolute; bottom: 1rem; right: 0.5rem; transform: rotate(-90deg); transform-origin: bottom right; font-size: 0.75rem; color: black; opacity: 0.7; }

/* Nav Links */
.nav-links { display: flex; flex-direction: column; gap: 0.5rem; }
.nav-item { position: relative; }
.lcars-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 1.5rem; }
.nav-link {
    display: block; padding: 0.75rem 1.5rem; text-decoration: none;
    color: var(--text-tertiary); font-weight: 600; border-radius: 0.75rem;
    transition: all 0.2s;
}
.nav-link:hover { background: rgba(0,0,0,0.05); color: var(--accent-blue); }

body.lcars-mode .nav-link {
    border-radius: 0; padding-left: 2rem; background: var(--lcars-purple); color: black; margin-left: 1.7rem;
}
body.lcars-mode .nav-item:nth-child(2) .nav-link { background: var(--lcars-blue); }
body.lcars-mode .nav-item:nth-child(3) .nav-link { background: var(--lcars-tan); }
body.lcars-mode .nav-item:nth-child(4) .nav-link { background: var(--lcars-red); }
body.lcars-mode .nav-link:hover { transform: translateX(10px); background: white !important; }

/* Mobile Header */
.mobile-header { display: none; padding: 1rem; background: rgba(255,255,255,0.9); border-bottom: 1px solid #eee; justify-content: space-between; align-items: flex-end; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(5px); }
@media (max-width: 768px) { .mobile-header { display: flex; } }
body.lcars-mode .mobile-header { background: black; border-bottom: 4px solid var(--lcars-gold); color: var(--lcars-gold); }
.mobile-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: bold; font-size: 1.2rem; }

/* Main Content */
.main-content { margin-left: 16rem; padding: 2rem; max-width: 2048px; }
@media (max-width: 768px) { .main-content { margin-left: 0; padding: 1rem; } }

/* LCARS Top Bar */
.lcars-top-bar { height: 2rem; background: var(--lcars-gold); margin-bottom: 2rem; position: relative; margin-left: 1rem; width: 100%; }
.lcars-top-curve { width: 8rem; height: 100%; background: black; position: absolute; right: 0; transform: skewX(20deg) translateX(2rem); }

/* Hero Section */
.hero-section { display: flex; flex-direction: column; gap: 3rem; margin-bottom: 5rem; margin-top: 2rem; }
@media (min-width: 1024px) { .hero-section { flex-direction: row; align-items: center; } }

.badge { display: inline-block; padding: 0.25rem 1rem; background: #dbeafe; color: #1e40af; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; border-radius: 99px; margin-bottom: 1rem; }
body.lcars-mode .badge { background: transparent; color: var(--lcars-purple); padding-left: 0; font-size: 1.2rem; }

.hero-title { font-size: 3rem; line-height: 1.1; font-weight: 800; color: var(--text-primary); margin-bottom: 1rem; }
.highlight-text { background: -webkit-linear-gradient(0deg, #2563eb, #9333ea); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.lcars-mode .hero-title { color: white; text-transform: uppercase; letter-spacing: 0.05em; }
body.lcars-mode .highlight-text { background: none; -webkit-text-fill-color: var(--lcars-blue); }

.hero-desc { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.6; max-width: 600px; }

/* Buttons */
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { padding: 0.75rem 2rem; font-weight: bold; border-radius: 99px; border: none; cursor: pointer; font-size: 1rem; transition: transform 0.2s; }
.btn:hover { transform: scale(1.05); }
.btn-primary { background: linear-gradient(135deg, #2563eb, #1e40af); color: white; box-shadow: 0 4px 10px rgba(37,99,235,0.3); }
.btn-outline { border: 2px solid #e5e7eb; background: transparent; color: var(--text-secondary); }

body.lcars-mode .btn { border-radius: 0; border-bottom-right-radius: 1.5rem; text-transform: uppercase; letter-spacing: 0.1em; }
body.lcars-mode .btn-primary { background: var(--lcars-gold); color: black; box-shadow: none; }
body.lcars-mode .btn-outline { border: 2px solid var(--lcars-blue); color: var(--lcars-blue); }
body.lcars-mode .btn-outline:hover { background: var(--lcars-blue); color: black; }

/* Hologram Visual (CSS Only) */
.hero-visual { flex: 1; width: 100%; }
.hologram-container {
    height: 300px; width: 100%; border-radius: 1.5rem; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
body.lcars-mode .hologram-container { border-radius: 0; border-top-left-radius: 2rem; border-bottom-left-radius: 2rem; border: none; border-right: 8px solid var(--lcars-gold); opacity: 0.8; }

.hologram-display { height: 100%; width: 100%; position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.holo-grid {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}
.holo-circle { width: 150px; height: 150px; border: 2px solid rgba(59, 130, 246, 0.5); border-radius: 50%; box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); animation: spin 10s linear infinite; }
.holo-text { margin-top: 1rem; color: #60a5fa; font-family: monospace; letter-spacing: 2px; font-size: 0.8rem; z-index: 10; }

@keyframes spin { 100% { transform: rotate(360deg); } }

.float-badge { position: absolute; bottom: 2rem; left: 2rem; background: white; padding: 0.75rem; border-radius: 1rem; display: flex; gap: 0.75rem; align-items: center; box-shadow: 0 10px 15px rgba(0,0,0,0.1); animation: float 3s ease-in-out infinite; }
.icon-circle { width: 2.5rem; height: 2.5rem; background: #dcfce7; color: #166534; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.large-value { font-weight: 800; font-size: 1.2rem; color: #1f2937; }
.small-label { font-size: 0.7rem; color: #6b7280; text-transform: uppercase; font-weight: bold; }

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

/* Stats Strip */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 4rem; }
.stat-card { background: var(--bg-panel); padding: 1.5rem; border-radius: 1rem; text-align: center; border: 1px solid var(--nav-border); box-shadow: var(--shadow); }
body.lcars-mode .stat-card { background: #111; border: 1px solid #333; border-radius: 0; box-shadow: none; }
.stat-value { font-size: 2.5rem; font-weight: 800; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); }

/* Cards Grid */
.solutions-section { margin-bottom: 4rem; }
.section-header { display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem; }
.header-line { height: 2px; background: #e5e7eb; flex: 1; border-radius: 99px; }
body.lcars-mode .header-line { height: 20px; background: var(--lcars-blue); border-radius: 0; border-top-left-radius: 1rem; border-bottom-left-radius: 1rem; }
h2 { font-size: 2rem; font-weight: 800; text-transform: uppercase; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { padding: 2rem; border-radius: 1.5rem; transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); }
.card-icon { width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: white; }
.card h3 { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 700; }
.card p { color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.5; }
.card-link { font-weight: 700; text-decoration: none; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; }

body.lcars-mode .card { border: 2px solid transparent; border-top-width: 4px; border-radius: 0; border-bottom-left-radius: 1rem; border-bottom-right-radius: 1rem; }
.bg-purple { background: var(--accent-purple); }
.bg-blue { background: var(--accent-blue); }
.bg-gold { background: var(--accent-gold); }
.bg-red { background: var(--accent-red); }

body.lcars-mode .bg-purple, body.lcars-mode .bg-blue, body.lcars-mode .bg-gold { background: transparent; color: inherit; }
body.lcars-mode .border-purple { border-color: var(--lcars-purple); }
body.lcars-mode .border-blue { border-color: var(--lcars-blue); }
body.lcars-mode .border-gold { border-color: var(--lcars-gold); }

/* Feature Split */
.split-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .split-grid { grid-template-columns: 1fr 1fr; } }
.feature-card { padding: 3rem; border-radius: 2rem; position: relative; overflow: hidden; }
.tag { display: inline-block; padding: 0.25rem 0.75rem; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; border-radius: 99px; margin-bottom: 1rem; }
.tag-gold { background: #fef3c7; color: #92400e; }
.tag-red { background: #fee2e2; color: #991b1b; }
body.lcars-mode .feature-card { border: 1px solid #333; border-radius: 0; background: #0f0f0f; }
body.lcars-mode .border-gold { border-color: var(--lcars-gold); }
body.lcars-mode .border-red { border-color: var(--lcars-red); }
body.lcars-mode .tag-gold { background: black; color: var(--lcars-gold); border: 1px solid var(--lcars-gold); }
body.lcars-mode .tag-red { background: black; color: var(--lcars-red); border: 1px solid var(--lcars-red); }

/* Footer */
.main-footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid #eee; }
.footer-bar { display: none; }
body.lcars-mode .main-footer { border: none; }
body.lcars-mode .footer-bar { display: block; height: 1rem; background: linear-gradient(90deg, var(--lcars-blue), var(--lcars-purple)); border-top-right-radius: 1rem; margin-bottom: 1rem; }
.footer-content { display: flex; justify-content: space-between; color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a { color: inherit; margin-left: 1rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent-blue); }

/* Toggle Button */
.fab { position: fixed; bottom: 2rem; right: 2rem; background: #111; color: white; border: none; padding: 1rem 1.5rem; border-radius: 99px; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; font-weight: bold; box-shadow: 0 10px 20px rgba(0,0,0,0.3); z-index: 100; }
body.lcars-mode .fab { background: var(--lcars-gold); color: black; border-radius: 0; border-bottom-left-radius: 2rem; }

* Style for the new sidebar toggle button */
.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: #a0aec0; /* Match other header icons */
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    margin-right: 10px; /* Add space between button and "Discussions" text */
    transition: color 0.2s ease;
}

.sidebar-toggle-btn:hover {
    color: white;
}

.toggle-collapse-btn:hover {
    color: white;
}

/* Hide the content when the parent section is collapsed */
.is-collapsed .collapsible-content {
    display: none;
}

/* Rotate the chevron icon down when collapsed */
.is-collapsed .toggle-collapse-btn {
    transform: rotate(180deg);
}

.top-nav-bar {
    display: flex;
    justify-content: flex-end; /* Pushes items to the right */
    gap: 2rem;                 /* Space between buttons */
    padding-bottom: 1rem;
}

.side-nav-bar {
    display: block;
    justify-content: flex-end; /* Pushes items to the right */
    gap: 2rem;                 /* Space between buttons */
    padding-bottom: 1rem;
}


.top-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.top-link:hover {
    color: var(--accent-blue);
}

/* LCARS Mode Overrides for Top Bar */
body.lcars-mode .top-link {
    font-family: var(--font-lcars);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.2rem;
    color: var(--lcars-tan); /* Use Tan color for high contrast */
}

body.lcars-mode .top-link:hover {
    color: var(--lcars-red); /* Red on hover */
    text-shadow: 0 0 5px rgba(204, 0, 0, 0.5);
}

/* --- DROPDOWN STYLES --- */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit; /* Inherit font from body */
    padding: 0;
}

/* The Hidden Menu */
.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 200px;
    background: var(--bg-panel);
    border: 1px solid var(--nav-border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    z-index: 1000;
    flex-direction: column;
}

/* Show menu on hover */
.dropdown-container:hover .dropdown-menu {
    display: flex;
}

/* Dropdown Links */
.dropdown-item {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: background 0.2s;
    display: block;
}

.dropdown-item:hover {
    background: rgba(0,0,0,0.05);
    color: var(--accent-blue);
}

.loading-text {
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Hide the inputs by default */
.hidden-input {
    display: none;
}

/* Display them when the JS adds the .visible class */
.hidden-input.visible {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--nav-border);
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: inherit;
}

/* Minor LCARS mode adjustment for the visible inputs */
body.lcars-mode .hidden-input.visible {
    border-radius: 0;
    border: 1px solid var(--lcars-tan);
    background: #111;
}

/* --- LCARS MODE DROPDOWN OVERRIDES --- */
body.lcars-mode .dropdown-menu {
    background: #000;
    border: 2px solid var(--lcars-tan);
    border-radius: 0;
    border-bottom-right-radius: 1rem;
    box-shadow: none;
}

body.lcars-mode .dropdown-item {
    color: var(--lcars-tan);
    text-transform: uppercase;
    font-family: var(--font-lcars);
    letter-spacing: 0.05em;
    border-bottom: 1px solid #333;
}

body.lcars-mode .dropdown-item:hover {
    background: var(--lcars-tan);
    color: black;
}

body.lcars-mode .dropdown-trigger {
    color: var(--lcars-tan);
    text-transform: uppercase;
    font-family: var(--font-lcars);
    letter-spacing: 0.1em;
    font-size: 1.2rem;
    font-weight: bold;
}
body.lcars-mode .dropdown-trigger:hover {
    color: var(--lcars-red);
}

.collapse-sidebar {
	padding: 0.5rem;
	display: flex;
	flex-direction: column;
}

.fa-bars {
	font-size: 18px;
	border: none;
}

.sidebar-toggle-btn {
	border: none;
}

/* --- CHATBOT SPECIFIC STYLES --- */

/* 1. Layout Adjustments */
.chat-layout {
    display: grid;
    grid-template-columns: 1fr 320px; /* Chat | Right Context */
    gap: 1.5rem;
    height: calc(100vh - 120px); /* Fill remaining height */
    overflow: hidden;
}

@media (max-width: 1024px) {
    .chat-layout { grid-template-columns: 1fr; }
    .right-context-panel { display: none; }
}

/* 2. Left Sidebar Accordions */
.nav-group {
    margin-bottom: 1rem;
}

.nav-group-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-group-header:hover {
    color: var(--accent-blue);
}

.nav-group-content {
    max-height: 40vh;
    overflow-y: auto;
    padding-left: 0.5rem;
    transition: max-height 0.3s ease;
}

.nav-group.collapsed .nav-group-content {
    max-height: 0;
    overflow: hidden;
}

.nav-group.collapsed .fa-chevron-down {
    transform: rotate(-90deg);
}

/* 3. Chat Area Styling */
.msger {
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--nav-border);
    overflow: hidden;
}

/* Streamlined Input Area (One Line) */
.form-container {
    background: var(--bg-panel);
    border-top: 1px solid var(--nav-border);
    padding: 1rem;
}


/* /\* Ensure the flex row doesn't try to wrap the button *\/ */
/* .input-row-flex { */
/*     display: flex; */
/*     align-items: center; */
/*     gap: 8px; */
/*     margin-bottom: 8px; */
/* } */

/* .btn-block-margin-top { */
/*     display: block;    /\* Forces it to behave like a block element *\/ */
/*     width: 100%;       /\* Ensures it stretches across the card *\/ */
/*     margin-top: 10px;  /\* Adds breathing room below the inputs *\/ */
/*     clear: both;       /\* Ensures no floating elements interfere *\/ */
/* } */

.input-row {
    display: flex;
    align-items: flex-end; /* Aligns bottom if textarea grows */
    gap: 0.75rem;
    background: var(--bg-main); /* Inner grey background */
    padding: 0.5rem;
    border-radius: 1.5rem; /* Pill shape */
    border: 1px solid var(--nav-border);
}

.msger-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 150px;
    color: var(--text-primary);
}

/* Small Action Buttons inside input bar */
.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.icon-btn:hover { background: rgba(0,0,0,0.05); color: var(--accent-blue); }
.icon-btn.active { color: var(--accent-blue); background: rgba(37, 99, 235, 0.1); }

/* Send Button */
.msger-send-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.msger-send-btn:hover { background: #1e40af; }

/* 4. Right Sidebar Cards */
.right-context-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding-right: 5px;
}

.context-card {
    /* Use the glass styles from main site */
    background: var(--bg-panel);
    border: 1px solid var(--nav-border);
    border-radius: 1rem;
    padding: 1.25rem;
    position: relative;
}

/* Header inside Right Cards */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--nav-border);
}

.card-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0;
}

/* Action Icons (SVG Wrappers) */
.action-icon {
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.action-icon:hover { color: var(--accent-blue); }

/* Custom container for API fields */
.hidden-api-container {
    display: none;
    width: 100%;
}

.hidden-api-container.visible {
    display: block;
}

/* LCARS Overrides */
body.lcars-mode .input-row { border-radius: 0; background: #111; border: 1px solid var(--lcars-tan); }
body.lcars-mode .msger-send-btn { border-radius: 0; background: var(--lcars-gold); color: black; }
body.lcars-mode .context-card { border-radius: 0; background: black; border: 2px solid var(--lcars-purple); border-right-width: 8px; }
