/* ============================================================
   HIVEMIND - Premium Glassmorphic Dashboard
   Color Palette: Charcoal + Teal (#00D4AA) + Orange (#FF6B35)
   ============================================================ */

:root {
    /* Core palette */
    --teal: #00D4AA;
    --teal-dim: #00A88A;
    --teal-glow: rgba(0, 212, 170, 0.4);
    --orange: #FF6B35;
    --orange-dim: #E05A2B;
    --orange-glow: rgba(255, 107, 53, 0.4);
    --green: #22C55E;
    --purple: #A855F7;
    --red: #EF4444;
    --blue: #3B82F6;

    /* Surfaces */
    --bg-base: #0A0A0F;
    --bg-surface: #111118;
    --bg-elevated: #1A1A24;
    --bg-hover: #22222E;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-highlight: rgba(255, 255, 255, 0.08);

    /* Text */
    --text-primary: #F0F0F5;
    --text-secondary: #8888A0;
    --text-muted: #55556A;

    /* Spacing */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Ambient Background ===== */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px; height: 600px;
    background: var(--teal);
    top: -200px; left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px; height: 500px;
    background: var(--orange);
    bottom: -200px; right: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px; height: 400px;
    background: var(--purple);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.08;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== Glass Utility ===== */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ===== Layout ===== */
.app {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 260px;
    background: rgba(17, 17, 24, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo {
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--glass-border);
}

.logo-mark {
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px var(--teal-glow));
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--teal), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-sub {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Nav */
.nav {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--teal), var(--orange));
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: var(--transition);
}

.nav-item:hover {
    background: var(--glass-highlight);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(0, 212, 170, 0.08);
    color: var(--teal);
}

.nav-item.active::before {
    opacity: 1;
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.8); }
}

.version-tag {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    padding: 3px 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
}

/* ===== Main ===== */
.main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left h1 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.header-breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.content {
    flex: 1;
    padding: 28px 32px;
    overflow-y: auto;
}

.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }

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

/* ===== Cards ===== */
.card {
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.card-header h3 i {
    color: var(--teal);
    font-size: 14px;
}

.card-body { padding: 24px; }

/* ===== Badge ===== */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
}

.badge-teal {
    background: rgba(0, 212, 170, 0.12);
    color: var(--teal);
    border: 1px solid rgba(0, 212, 170, 0.2);
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

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

.stat-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    top: -40px;
    right: -20px;
    pointer-events: none;
}

.glow-teal { background: var(--teal); }
.glow-orange { background: var(--orange); }
.glow-green { background: var(--green); }
.glow-purple { background: var(--purple); }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-icon.teal { background: rgba(0, 212, 170, 0.12); color: var(--teal); }
.stat-icon.orange { background: rgba(255, 107, 53, 0.12); color: var(--orange); }
.stat-icon.green { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.stat-icon.purple { background: rgba(168, 85, 247, 0.12); color: var(--purple); }

.stat-info { display: flex; flex-direction: column; flex: 1; }

.stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

.stat-trend {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.stat-trend.up { background: rgba(34, 197, 94, 0.1); color: var(--green); }
.stat-trend.neutral { background: rgba(136, 136, 160, 0.1); color: var(--text-secondary); }
.stat-trend.down { background: rgba(239, 68, 68, 0.1); color: var(--red); }

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

/* ===== Quick Actions ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.quick-action::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.quick-action:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    color: var(--text-primary);
}

.quick-action:hover::before { opacity: 1; }

.qa-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.qa-icon.oracle { background: rgba(168, 85, 247, 0.12); color: var(--purple); }
.qa-icon.builder { background: rgba(255, 107, 53, 0.12); color: var(--orange); }
.qa-icon.designer { background: rgba(236, 72, 153, 0.12); color: #EC4899; }
.qa-icon.sage { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.qa-icon.architect { background: rgba(0, 212, 170, 0.12); color: var(--teal); }
.qa-icon.phantom { background: rgba(136, 136, 160, 0.12); color: var(--text-secondary); }

.qa-label {
    font-size: 13px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.qa-agent {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    z-index: 1;
}

/* ===== Activity Log ===== */
.activity-log {
    max-height: 260px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    align-items: flex-start;
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    margin-top: 6px;
    flex-shrink: 0;
}

.activity-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* ===== Agent Status Grid ===== */
.agent-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.agent-status-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}

.agent-status-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--bg-elevated);
}

.agent-status-card .agent-emoji { font-size: 28px; }

.agent-status-card .agent-info { flex: 1; }

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

.agent-status-card .agent-role {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.agent-status-card .agent-state {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
}

.agent-state.IDLE { background: var(--bg-hover); color: var(--text-secondary); }
.agent-state.READY { background: rgba(0, 212, 170, 0.12); color: var(--teal); }
.agent-state.BUSY { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.agent-state.ERROR { background: rgba(239, 68, 68, 0.12); color: var(--red); }

/* ===== Agents List ===== */
.agents-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.agent-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--orange));
    opacity: 0;
    transition: opacity 0.3s;
}

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

.agent-card:hover::before { opacity: 1; }

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

.agent-card-emoji { font-size: 40px; }

.agent-card-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.agent-card-info p {
    color: var(--text-muted);
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.agent-card-quote {
    font-style: italic;
    color: var(--text-muted);
    padding: 12px 16px;
    background: var(--bg-base);
    border-radius: var(--radius);
    margin-bottom: 16px;
    border-left: 3px solid;
    border-image: linear-gradient(180deg, var(--teal), var(--orange)) 1;
    font-size: 13px;
}

.agent-card-stats {
    display: flex;
    gap: 24px;
}

.agent-card-stat { display: flex; flex-direction: column; }

.agent-card-stat .value {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

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

/* ===== Tasks ===== */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.task-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--bg-elevated);
}

.task-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.task-status.pending { background: var(--orange); box-shadow: 0 0 8px var(--orange-glow); }
.task-status.in_progress { background: var(--blue); animation: pulse-status 1.5s infinite; }
.task-status.completed { background: var(--green); }
.task-status.failed { background: var(--red); }

@keyframes pulse-status { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.task-info { flex: 1; }
.task-title { font-weight: 500; font-size: 14px; margin-bottom: 2px; }
.task-meta { font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

.task-priority {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.task-priority.high { background: rgba(239, 68, 68, 0.1); color: var(--red); }
.task-priority.medium { background: rgba(255, 107, 53, 0.1); color: var(--orange); }
.task-priority.low { background: rgba(34, 197, 94, 0.1); color: var(--green); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.3px;
}

.btn-accent {
    background: linear-gradient(135deg, var(--teal), var(--teal-dim));
    color: #000;
    box-shadow: 0 2px 12px rgba(0, 212, 170, 0.25);
}

.btn-accent:hover {
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--glass-bg);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: var(--glass-highlight);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ===== Select ===== */
.select-glass {
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    outline: none;
}

.select-glass:focus { border-color: var(--teal); }

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: none; }
}

.modal-header {
    padding: 24px 28px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 { font-size: 18px; font-weight: 600; }

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover { background: var(--glass-highlight); color: var(--text-primary); }

.modal-body { padding: 24px 28px; }

.modal-footer {
    padding: 16px 28px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ===== Forms ===== */
.form-group { margin-bottom: 18px; }

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ===== Hive Mind ===== */
.hive-mind-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.hive-hero {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
}

.hive-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
}

.hive-hero-content {
    position: relative;
    text-align: center;
    padding: 20px 0;
}

.hive-icon-large {
    margin-bottom: 16px;
    filter: drop-shadow(0 0 16px var(--teal-glow));
}

.hive-hero-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.hive-hero-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.hive-mind-status { margin-bottom: 20px; display: flex; justify-content: center; }

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13px;
}

.status-indicator.inactive {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.status-indicator.inactive .status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-muted);
}

.status-indicator.active {
    background: rgba(0, 212, 170, 0.1);
    color: var(--teal);
}

.status-indicator.active .status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 12px var(--teal-glow);
    animation: pulse-glow 1.5s infinite;
}

.hive-mind-actions { display: flex; gap: 12px; justify-content: center; }

.hive-mind-agents { display: flex; flex-wrap: wrap; gap: 12px; }

.hive-mind-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.hive-mind-agent.synced {
    border-color: rgba(0, 212, 170, 0.3);
    background: rgba(0, 212, 170, 0.05);
}

.shared-context {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--teal);
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
}

/* ===== Tools ===== */
.tools-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tool-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.tool-card:hover { border-color: rgba(255,255,255,0.1); }

.tool-card h4 { font-size: 14px; margin-bottom: 6px; }

.tool-card p { font-size: 12px; color: var(--text-secondary); }

.tool-card .category {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(0, 212, 170, 0.08);
    border-radius: 6px;
    font-size: 10px;
    color: var(--teal);
    margin-top: 12px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.4;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.12); }

/* ===== Notification ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 13px;
    z-index: 10000;
    animation: notif-in 0.3s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    font-family: 'Space Grotesk', sans-serif;
}

.notification.success { background: rgba(0, 212, 170, 0.15); color: var(--teal); border-color: rgba(0, 212, 170, 0.2); }
.notification.error { background: rgba(239, 68, 68, 0.15); color: var(--red); border-color: rgba(239, 68, 68, 0.2); }
.notification.info { background: rgba(59, 130, 246, 0.15); color: var(--blue); border-color: rgba(59, 130, 246, 0.2); }

@keyframes notif-in { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes notif-out { from { transform: none; opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* ===== Loading ===== */
.spinner {
    width: 32px; height: 32px;
    border: 2px solid var(--glass-border);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .agents-list { grid-template-columns: 1fr; }
    .tools-list { grid-template-columns: repeat(2, 1fr); }
    .agent-status-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .agent-status-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .tools-list { grid-template-columns: 1fr; }
    .hive-mind-container { grid-template-columns: 1fr; }
    .content { padding: 20px 16px; }
    .header { padding: 16px 20px; }
}
