/* ====================================================================
   YATRAAE OS v2.0 - CORE DESIGN SYSTEM (VANILLA CSS)
   ==================================================================== */

:root {
    /* Color Palette - High Contrast White, Red, Yellow, Black Theme */
    --bg-main: #ffffff;
    --bg-sidebar: #fafafa;
    --bg-card: #f9f9f9;
    --border-color: rgba(0, 0, 0, 0.15);
    --border-focus: rgba(239, 68, 68, 0.7);
    
    /* Red & Yellow Accent Palette (replacing cyan/purple/emerald) */
    --accent-purple: #ef4444;     /* Primary red accent */
    --accent-cyan: #d97706;       /* Secondary yellow accent (darker amber for readability on white background) */
    --accent-emerald: #f43f5e;    /* Alternate red-pink accent */
    --accent-orange: #b45309;     /* Amber yellow accent */
    --accent-red: #d00000;        /* Bright danger red */
    --accent-indigo: #be123c;     /* Crimson red */
    
    /* Text Colors (Crisp high-contrast dark text) */
    --text-primary: #000000;
    --text-secondary: #1a1a1a;
    --text-muted: #555555;
    
    /* Layout */
    --sidebar-width: 260px;
    --header-height: 70px;
    --border-radius: 16px;
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Shadows & Effects */
    --glow-purple: 0 0 20px rgba(239, 68, 68, 0.1);
    --glow-cyan: 0 0 20px rgba(217, 119, 6, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Ambient Background Glows */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
    mix-blend-mode: screen;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 80%);
    top: -10%;
    left: -10%;
    animation: float-glow 20s infinite alternate;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 80%);
    bottom: -10%;
    right: -10%;
    animation: float-glow 25s infinite alternate-reverse;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 80%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
}

@keyframes float-glow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

/* App Container Layout */
.app-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    height: 100%;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 8px;
}

.brand-logo {
    font-size: 28px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.brand-version {
    font-size: 10px;
    background: rgba(139, 92, 246, 0.2);
    color: #c084fc;
    padding: 1px 6px;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    vertical-align: middle;
}

.brand-tagline {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* Sidebar Menu Navigation */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

.menu-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.menu-item.active {
    color: var(--text-primary);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: var(--glow-purple);
}

.menu-item.active i {
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan);
}

/* Badge pulse styling */
.badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
}

.badge-pulse {
    background-color: var(--accent-purple);
    color: var(--text-primary);
    animation: badge-glow 1.5s infinite alternate;
}

@keyframes badge-glow {
    0% { box-shadow: 0 0 5px rgba(139, 92, 246, 0.4); }
    100% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.8); }
}

.badge-emerald { background-color: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-emerald-compact { background-color: rgba(16, 185, 129, 0.15); color: #34d399; padding: 1px 6px; font-size: 9px; border-radius: 4px; }
.badge-purple-compact { background-color: rgba(139, 92, 246, 0.15); color: #c084fc; padding: 1px 6px; font-size: 9px; border-radius: 4px; }
.badge-blue { background-color: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-orange { background-color: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-green { background-color: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Sidebar Footer */
.sidebar-status {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-connection {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background-color: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
}

.status-system {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Main Viewport Layout */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Header Bar Styling */
.header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.header-search {
    position: relative;
    width: 380px;
}

.header-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.header-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 10px 16px 10px 42px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    transition: var(--transition-smooth);
}

.header-search input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-focus);
    outline: none;
    box-shadow: var(--glow-cyan);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.lang-selector select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 6px 12px;
    font-family: var(--font-sans);
    font-size: 12px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-selector select:hover {
    border-color: var(--accent-purple);
}

.os-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.system-alerts-icon {
    position: relative;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
}

.system-alerts-icon:hover {
    color: var(--text-primary);
    border-color: var(--accent-orange);
}

.alert-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--accent-orange);
    color: var(--bg-main);
    font-size: 9px;
    font-weight: 800;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 16px;
    border-left: 1px solid var(--border-color);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent-purple);
}

.user-info {
    display: flex;
    flex-direction: column;
}

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

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

/* Workspace Viewport Tab Container */
.workspace-viewport {
    flex-grow: 1;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}

.tab-pane {
    display: none;
    animation: fade-in 0.4s ease-out forwards;
}

.tab-pane.active {
    display: block;
}

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

/* Welcome Typography */
.welcome-header {
    margin-bottom: 32px;
}

.welcome-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.welcome-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

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

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

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition-smooth);
    box-shadow: var(--glass-shadow);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.purple-gradient { background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.05) 100%); border: 1px solid rgba(139, 92, 246, 0.3); color: var(--accent-purple); }
.cyan-gradient { background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.05) 100%); border: 1px solid rgba(6, 182, 212, 0.3); color: var(--accent-cyan); }
.emerald-gradient { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--accent-emerald); }
.orange-gradient { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--accent-orange); }

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-content h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

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

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

/* Glassmorphic Cards Styling */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.glass-card.full-height {
    height: 100%;
    margin-bottom: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    font-size: 16px;
    color: var(--accent-purple);
}

.card-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

/* Columns Dashboard Layout */
.dashboard-columns {
    display: flex;
    gap: 24px;
}

.dash-col {
    display: flex;
    flex-direction: column;
}

.flex-1 { flex: 1; min-width: 0; }
.flex-2 { flex: 2; min-width: 0; }
.flex-column { display: flex; flex-direction: column; }
.flex-grow { flex-grow: 1; }

/* Interactive Network visualizer elements */
.mini-network-container {
    height: 200px;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.network-graph-container {
    height: 380px;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

#network-main-canvas, #mini-network-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.agent-activity-log {
    margin-top: 16px;
}

.log-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.log-stream {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    height: 110px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-line {
    line-height: 1.4;
    white-space: pre-wrap;
    animation: log-slide-in 0.3s ease-out;
}

@keyframes log-slide-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.log-timestamp {
    color: var(--text-muted);
}

.log-agent {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Widgets Styling */
.converter-widget {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget-row {
    display: flex;
    gap: 8px;
}

.widget-arrow {
    display: flex;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: var(--glow-cyan);
}

.form-input.read-only {
    background: rgba(255, 255, 255, 0.01);
    color: var(--accent-cyan);
    font-weight: 600;
}

.weather-widget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
}

.weather-city {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weather-city span:first-child {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.weather-temp {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.weather-condition {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

.weather-icon {
    font-size: 20px;
    color: var(--accent-orange);
}

.alert-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-list li {
    display: flex;
    gap: 12px;
    font-size: 12px;
    line-height: 1.4;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid transparent;
}

.alert-list li:has(.text-red) { border-left-color: var(--accent-red); }
.alert-list li:has(.text-blue) { border-left-color: var(--accent-indigo); }

.alert-list li div {
    display: flex;
    flex-direction: column;
}

.alert-list li strong {
    color: var(--text-primary);
    margin-bottom: 2px;
}

.alert-list li span {
    color: var(--text-secondary);
}

.text-red { color: var(--accent-red); }
.text-blue { color: var(--accent-indigo); }
.text-orange { color: var(--accent-orange); }
.text-emerald { color: var(--accent-emerald); }

/* Form Controls & Grid styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
    color: var(--text-primary);
    box-shadow: var(--glow-purple);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-primary-compact {
    background: var(--accent-purple);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary-compact:hover {
    background: #7c3aed;
}

.btn-secondary-compact {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

.btn-secondary-compact:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-emerald-compact {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

.btn-emerald-compact:hover {
    background: rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button input {
    flex-grow: 1;
}

/* Travel Budget Calculator results */
.budget-results {
    animation: fade-in 0.4s ease-out;
}

.budget-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.total-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan);
}

.budget-breakdown-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
}

.progress-segment {
    height: 100%;
    transition: width 0.6s ease-in-out;
}

.color-flights { background-color: var(--accent-purple); }
.color-hotel { background-color: var(--accent-cyan); }
.color-food { background-color: var(--accent-orange); }
.color-act { background-color: var(--accent-indigo); }

.dot-flights { background-color: var(--accent-purple); }
.dot-hotel { background-color: var(--accent-cyan); }
.dot-food { background-color: var(--accent-orange); }
.dot-act { background-color: var(--accent-indigo); }

.legend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    font-size: 11px;
    color: var(--text-secondary);
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.hidden {
    display: none !important;
}

/* Explorer output styling */
.explore-output {
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.card-tag {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.explore-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.explore-details p strong {
    color: var(--text-primary);
}

.explore-details p span {
    color: var(--text-secondary);
}

/* Packing Checklist styling */
.select-compact {
    width: 100px;
}

.checklist-container {
    margin-top: 20px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 380px;
    padding-right: 4px;
}

/* Checklist Category Blocks */
.checklist-category-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checklist-cat-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
    padding-bottom: 2px;
}

.checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    transition: var(--transition-smooth);
}

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

.checklist-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex-grow: 1;
}

.check-box-custom {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    color: transparent;
    font-size: 11px;
}

.checklist-item.checked .check-box-custom {
    background-color: var(--accent-emerald);
    border-color: var(--accent-emerald);
    color: var(--bg-main);
}

.checklist-text {
    font-size: 13px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.checklist-item.checked .checklist-text {
    color: var(--text-muted);
    text-decoration: line-through;
}

.btn-delete-item {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 12px;
}

.btn-delete-item:hover {
    color: var(--accent-red);
}

/* Content Studio Script generation simulator */
.agent-terminal-simulation {
    margin-top: 20px;
    background: #05060b;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.terminal-sim-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.pulse-indicator {
    width: 6px;
    height: 6px;
    background-color: var(--accent-purple);
    border-radius: 50%;
    animation: indicator-pulse 1s infinite alternate;
}

@keyframes indicator-pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px var(--accent-purple); }
}

.terminal-sim-body {
    padding: 12px;
    height: 120px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
    line-height: 1.4;
}

/* SEO metrics gauge */
.seo-gauge-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.seo-score-gauge {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid var(--accent-purple);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-purple);
}

.seo-val {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
}

.seo-lbl {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.seo-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.seo-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seo-check i {
    font-size: 14px;
}

/* Output Tabbed Workspace */
.output-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    gap: 16px;
}

.out-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.out-tab:hover {
    color: var(--text-primary);
}

.out-tab.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

.output-content-container {
    position: relative;
    height: 380px;
}

.out-panel {
    display: none;
    height: 100%;
}

.out-panel.active {
    display: block;
}

.output-textarea {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
    transition: var(--transition-smooth);
}

.output-textarea:focus {
    border-color: var(--border-focus);
}

/* SEO meta descriptions content styling */
.meta-section {
    margin-bottom: 18px;
}

.meta-section h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.meta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.meta-list li {
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
}

.meta-text {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    line-height: 1.4;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seo-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Thumbnail panels */
.thumbnail-prompt-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.thumbnail-prompt-card h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.prompt-code {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 10px;
}

/* Document Hub Sheets styling */
.table-scroll-container {
    overflow-x: auto;
    max-height: 400px;
}

.excel-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-primary);
}

.excel-table th {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
}

.excel-table td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.01);
}

.excel-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.excel-table input {
    background: none;
    border: 1px solid transparent;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    width: 100%;
    outline: none;
    padding: 2px 4px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.excel-table input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent-cyan);
}

.table-total-row td {
    font-weight: 700;
    background: rgba(6, 182, 212, 0.05);
    color: var(--accent-cyan);
}

.btn-remove-row {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-remove-row:hover {
    color: var(--accent-red);
}

.text-area-compact {
    height: 80px;
    resize: none;
}

/* PDF Previewing Panel */
.pdf-file-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.pdf-file-icon {
    font-size: 32px;
}

.pdf-file-details {
    display: flex;
    flex-direction: column;
}

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

.pdf-size {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Agent Network Page layouts */
.agent-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.network-logs-console {
    background: #05060b;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    height: 380px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.log-entry-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 8px;
}

.log-entry-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.log-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
}

.log-msg {
    line-height: 1.4;
    white-space: pre-wrap;
}

.agents-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.agent-meta-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition-smooth);
}

.agent-meta-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.agent-meta-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.agent-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.agent-meta-header h4 {
    font-size: 13px;
    font-weight: 600;
}

.agent-meta-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* OS Command Terminal Interface */
.scrollable-terminal-pane {
    height: calc(100vh - 220px);
}

.terminal-header {
    background: #0f1322;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-title i {
    color: var(--accent-cyan);
}

.terminal-controls {
    display: flex;
    gap: 6px;
}

.dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-btn.red { background-color: #ef4444; }
.dot-btn.yellow { background-color: #f59e0b; }
.dot-btn.green { background-color: #10b981; }

.terminal-body {
    background: #05070f;
    flex-grow: 1;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #cbd5e1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.term-line {
    line-height: 1.5;
    white-space: pre-wrap;
}

.term-line.welcome {
    color: var(--accent-purple);
    font-weight: 600;
}

.term-line.error {
    color: var(--accent-red);
}

.term-line.success {
    color: var(--accent-emerald);
}

.term-line.user {
    color: var(--accent-cyan);
    margin-top: 8px;
}

.term-line.agent {
    color: #e2e8f0;
    margin-bottom: 8px;
    padding-left: 12px;
    border-left: 2px solid var(--accent-purple);
}

.term-cmd {
    color: var(--accent-cyan);
    font-weight: 600;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.prompt-indicator {
    color: var(--accent-purple);
    font-weight: 700;
    user-select: none;
}

#terminal-input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    flex-grow: 1;
    outline: none;
    caret-color: var(--accent-cyan);
}

/* Animations */
.fa-spin-slow {
    animation: fa-spin 12s infinite linear;
}

/* Responsive UI fixes */
@media (max-width: 1024px) {
    .dashboard-columns, .agent-layout-grid {
        flex-direction: column;
    }
    
    .sidebar {
        width: 80px;
        padding: 20px 8px;
    }
    
    .brand-info, .menu-item span, .badge, .status-text, .status-system {
        display: none;
    }
    
    .sidebar-brand {
        justify-content: center;
        margin-bottom: 24px;
    }
    
    .header-search {
        width: 220px;
    }
}

/* --- Phase 1 Module 2: AI Mission & Thinking Engine --- */
.thinking-container {
    background: rgba(10, 12, 30, 0.4);
    border: 1px dashed rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    margin: 8px 0;
    font-family: var(--font-mono);
    font-size: 11px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.thinking-header {
    background: rgba(139, 92, 246, 0.1);
    padding: 6px 12px;
    color: #c084fc;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: var(--transition-smooth);
}

.thinking-header:hover {
    background: rgba(139, 92, 246, 0.18);
    color: var(--text-primary);
}

.thinking-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-secondary);
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.thinking-step {
    opacity: 0;
    transform: translateY(2px);
    animation: step-reveal 0.3s ease-out forwards;
    line-height: 1.4;
}

@keyframes step-reveal {
    to { opacity: 1; transform: translateY(0); }
}

.thinking-step-title {
    color: var(--accent-cyan);
    font-weight: 700;
}

.reasoning-badge {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reasoning-badge.travel { color: #22d3ee; background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.25); }
.reasoning-badge.seo { color: #fbbf24; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.25); }
.reasoning-badge.content { color: #c084fc; background: rgba(192, 132, 252, 0.12); border-color: rgba(192, 132, 252, 0.25); }
.reasoning-badge.financial { color: #fbbf24; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.25); }
.reasoning-badge.research { color: #38bdf8; background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.25); }
.reasoning-badge.document { color: #34d399; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.25); }

.proactive-actions-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 16px 12px;
    animation: fade-in 0.4s ease-out;
}

.action-chip {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: #22d3ee;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.action-chip:hover {
    background: rgba(6, 182, 212, 0.18);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
    transform: translateY(-1px);
}

.action-chip i {
    font-size: 11px;
}

/* --- Phase 1 Module 3: Memory Engine & Context Manager --- */
.context-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.memory-variables-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
}

.memory-variables-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 6px;
}

.memory-variables-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mem-key {
    color: var(--text-secondary);
    font-weight: 500;
}

.mem-val {
    color: var(--accent-cyan);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
    font-family: var(--font-mono);
    font-size: 12px;
}

.workflow-steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-left: 8px;
}

.wf-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.wf-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: transparent;
    background: rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.wf-label {
    transition: var(--transition-smooth);
}

/* Active State */
.wf-step.active .wf-label {
    color: var(--text-primary);
    font-weight: 600;
}

.wf-step.active .wf-dot {
    border-color: var(--accent-purple);
    box-shadow: 0 0 8px var(--accent-purple);
    background-color: rgba(139, 92, 246, 0.1);
}

/* Completed State */
.wf-step.completed .wf-label {
    color: var(--text-muted);
    text-decoration: none;
}

.wf-step.completed .wf-dot {
    border-color: var(--accent-emerald);
    background-color: var(--accent-emerald);
    color: var(--bg-main);
    font-weight: 700;
}

/* Mock files memory block styling */
.mem-files-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 120px;
    overflow-y: auto;
}

.mem-file-empty {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 12px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}

.mem-file-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    animation: file-chip-reveal 0.3s ease-out;
}

@keyframes file-chip-reveal {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.mem-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.mem-file-info i {
    color: var(--accent-purple);
}

.btn-delete-file {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition-smooth);
}

.btn-delete-file:hover {
    color: var(--accent-red);
}

/* --- Phase 1 Module 4: Multi-Agent Orchestration Engine --- */
.routing-flow-diagram {
    background: rgba(0, 0, 0, 0.2);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    font-family: var(--font-mono);
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.routing-flow-diagram span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.routing-flow-diagram .rt-core {
    color: var(--accent-purple);
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.05);
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
}

.routing-flow-diagram .rt-agent {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.05);
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.2);
}

.routing-flow-diagram .rt-mcp {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background: rgba(245, 158, 11, 0.05);
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.routing-flow-diagram .rt-arrow {
    color: var(--text-muted);
    font-weight: bold;
    border: none !important;
    background: none !important;
    padding: 0 4px !important;
}

.agent-meta-card {
    transition: var(--transition-smooth) !important;
}

.agent-meta-card.active-pulse {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.2) !important;
    transform: translateY(-2px) !important;
}

.agent-meta-card.active-pulse .badge-emerald-compact {
    background-color: var(--accent-cyan) !important;
    color: var(--bg-main) !important;
    box-shadow: 0 0 8px var(--accent-cyan);
    font-weight: bold;
}

/* --- Phase 1 Module 5: Tool Orchestrator & MCP Router --- */
.mcp-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.mcp-tool-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.mcp-tool-tag:hover {
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.mcp-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.mcp-indicator.status-ready {
    background-color: var(--accent-emerald);
    box-shadow: 0 0 6px var(--accent-emerald);
}

.mcp-indicator.status-calling {
    background-color: var(--accent-orange);
    box-shadow: 0 0 8px var(--accent-orange);
    animation: mcp-ind-pulse 1.2s infinite ease-in-out;
}

@keyframes mcp-ind-pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.mcp-tool-tag.calling {
    border-color: var(--accent-orange) !important;
    color: var(--text-primary) !important;
    background: rgba(245, 158, 11, 0.04) !important;
}

/* --- Layout & AI Chat Timeline Styles --- */
.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    font-size: 24px;
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fa-spin 12s infinite linear;
}

.btn-new-chat {
    background: var(--accent-purple) !important;
    color: #ffffff !important;
    border: none;
    font-weight: bold;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--glow-purple);
}

.btn-new-chat:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-header-upload {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-header-upload:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--accent-cyan);
}

/* Running Agents */
.running-agents-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.running-agents-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.running-agents-list li.active {
    border-color: var(--accent-purple) !important;
    background: rgba(239, 68, 68, 0.04) !important;
}

.ra-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.ra-indicator.offline {
    background-color: var(--text-muted);
}

.ra-indicator.online {
    background-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.ra-indicator.running {
    background-color: var(--accent-purple);
    box-shadow: var(--glow-purple);
    animation: mcp-ind-pulse 1s infinite ease-in-out;
}

.ra-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    flex-grow: 1;
}

.ra-status {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.ra-status.active {
    color: var(--accent-purple);
}

.ra-status.running {
    color: var(--accent-cyan);
}

/* Processing steps timeline */
.chat-processing-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    margin: 14px 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.proc-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    opacity: 0.35;
}

.proc-step.active {
    opacity: 1;
    border-color: var(--accent-cyan);
    background: rgba(255, 204, 0, 0.04);
}

.proc-step.completed {
    opacity: 0.9;
    border-color: var(--accent-purple);
    background: rgba(239, 68, 68, 0.02);
}

.proc-icon {
    font-size: 15px;
    color: var(--text-secondary);
    width: 24px;
    text-align: center;
}

.proc-step.active .proc-icon {
    color: var(--accent-cyan);
}

.proc-step.completed .proc-icon {
    color: var(--accent-purple);
}

.proc-text {
    font-size: 12px;
    color: var(--text-secondary);
    flex-grow: 1;
}

.proc-step.active .proc-text {
    color: var(--text-primary);
}

.proc-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

.proc-step.active .proc-badge {
    background: var(--accent-cyan) !important;
    color: #000;
    font-weight: bold;
}

.proc-step.completed .proc-badge {
    background: var(--accent-purple) !important;
    color: #fff;
}

/* Downloads List */
.downloads-history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.downloads-history-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.downloads-history-list .item-name {
    flex-grow: 1;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.downloads-history-list .item-action a {
    color: var(--accent-cyan);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.downloads-history-list .item-action a:hover {
    color: var(--accent-purple);
}

.downloads-history-list .item-time {
    color: var(--text-muted);
    font-size: 10px;
}

.live-stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Sidebar Recent & Projects Section */
.sidebar-section {
    margin: 18px 14px 4px 14px;
}

.sidebar-section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-recent-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-recent-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.sidebar-recent-list li a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.sidebar-recent-list li a i {
    font-size: 11px;
    width: 14px;
    text-align: center;
    color: var(--accent-purple);
}

.sidebar-recent-list li a.project-item i {
    color: var(--accent-cyan);
}

/* Chat Input Redesign */
.chat-input-wrapper {
    margin-top: 14px;
    background: rgba(22, 22, 22, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    transition: var(--transition-smooth);
}

.chat-input-wrapper:focus-within {
    border-color: var(--accent-purple);
    box-shadow: var(--glow-purple);
}

.chat-input-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.chat-input-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    flex-grow: 1;
    font-family: var(--font-sans);
    padding: 6px 0;
}

.chat-input-box input::placeholder {
    color: var(--text-muted);
}

.btn-send-chat {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.btn-send-chat:hover {
    color: var(--accent-purple);
    background: rgba(239, 68, 68, 0.08);
}

.chat-input-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

.chat-action-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.chat-chip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
    color: var(--text-secondary);
    font-size: 10.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
}

.chat-chip:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

#chip-voice i { color: #ef4444; }
#chip-upload i { color: #ffcc00; }
#chip-travel i { color: #f43f5e; }
#chip-youtube i { color: #ef4444; }
#chip-blog i { color: #ffcc00; }
#chip-pdf i { color: #ef4444; }
#chip-flights i { color: #ffcc00; }
#chip-hotels i { color: #ef4444; }
#chip-maps i { color: #ffb700; }

/* --- Module 6: Real-Time Task Planning Engine --- */
.execution-stages-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 14px 0 6px 0;
}

.execution-stages-bar::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.stage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    flex: 1;
    position: relative;
}

.stage-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0e0e0e;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.stage-name {
    font-size: 8.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.stage-item.completed .stage-dot {
    border-color: var(--accent-purple) !important;
    background: var(--accent-purple) !important;
    color: #ffffff !important;
    box-shadow: var(--glow-purple);
}

.stage-item.completed .stage-name {
    color: var(--accent-purple) !important;
    font-weight: bold;
}

.stage-item.active .stage-dot {
    border-color: var(--accent-cyan) !important;
    background: #0e0e0e !important;
    color: var(--accent-cyan) !important;
    box-shadow: var(--glow-cyan);
}

.stage-item.active .stage-name {
    color: var(--accent-cyan) !important;
    font-weight: bold;
}

/* Dependency Tree */
.dependency-tree {
    list-style: none;
    padding-left: 0;
}

.dependency-tree ul {
    list-style: none;
    padding-left: 20px;
    border-left: 1px dashed var(--border-color);
    margin-top: 6px;
    margin-bottom: 6px;
}

.dependency-tree li {
    font-size: 12px;
    margin: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dep-reason {
    font-size: 10px;
    color: var(--text-muted);
    font-style: italic;
}

/* Checkpoint List */
.checkpoint-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cp-item {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    font-size: 12px;
}

.cp-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cp-item strong {
    font-size: 11.5px;
    color: var(--text-primary);
}

.cp-item span {
    font-size: 10.5px;
    color: var(--text-secondary);
}

.cp-item.passed {
    border-left: 3px solid var(--accent-emerald);
}

.cp-item.passed i {
    color: var(--accent-emerald);
}

.cp-item.warning {
    border-left: 3px solid var(--accent-orange);
}

.cp-item.warning i {
    color: var(--accent-orange);
}





