:root {
    --bg-dark: #07080a;
    --panel-bg: rgba(20, 22, 28, 0.6);
    --panel-border: rgba(255, 255, 255, 0.05);
    --text-primary: #f2f4f7;
    --text-muted: #8b92a5;
    --accent: #5e6ad2;
    --accent-glow: rgba(94, 106, 210, 0.4);
    --success: #2ecd71;
    --error: #e74c3c;
    --font-ui: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-ui);
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract Orbs */
.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
}

.glow-orb.primary {
    top: -20vh;
    left: -10vw;
    background: var(--accent);
}

.glow-orb.secondary {
    bottom: -20vh;
    right: -10vw;
    background: #9b59b6;
    opacity: 0.1;
}

/* Layout */
.app-container {
    width: 95vw;
    height: 90vh;
    max-width: 1600px;
    display: flex;
    gap: 1.5rem;
}

.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Sidebar */
.sidebar {
    width: 380px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.badge {
    margin-left: auto;
    background: rgba(94, 106, 210, 0.1);
    border: 1px solid var(--accent-glow);
    color: var(--accent);
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 100px;
    font-weight: 600;
}

.agent-feed {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
}

.agent-feed::-webkit-scrollbar {
    width: 6px;
}

.agent-feed::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.log-entry {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    opacity: 0;
    animation: fadeIn 0.3s forwards ease-out;
}

.log-entry.system {
    border-left: 3px solid var(--text-muted);
}

.log-entry.error {
    border-left: 3px solid var(--error);
}

.log-entry.success {
    border-left: 3px solid var(--success);
}

.log-entry.running {
    border-left: 3px solid var(--accent);
}

.timestamp {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-bottom: 6px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.topbar h1 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.dot.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 205, 113, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(46, 205, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 205, 113, 0);
    }
}

.visualization-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
}

.empty-state h3 {
    margin-bottom: 8px;
    font-weight: 400;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 0.9rem;
    max-width: 400px;
    line-height: 1.6;
}

canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Command Palette */
.command-palette {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-wrap {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    overflow: hidden;
    transition: border-color 0.2s;
}

.input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.cmd-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
    font-family: var(--font-ui);
}

.cmd-input::placeholder {
    color: #555c6e;
}

.execute-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

.execute-btn:hover {
    background: #6c78eb;
}

.execute-btn:disabled {
    background: #3a3f58;
    cursor: not-allowed;
    color: var(--text-muted);
}

.suggested-prompts {
    display: flex;
    gap: 10px;
}

.prompt-chip {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    cursor: pointer;
    transition: all 0.2s;
}

.prompt-chip:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}