/* ==========================================================================
   AgyRemote Style Sheet — Premium Glassmorphic Dark Design System
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-main: #070913;
    --bg-header: rgba(13, 17, 30, 0.75);
    --bg-panel: rgba(17, 22, 39, 0.6);
    --bg-panel-solid: #111627;
    --bg-input: rgba(10, 14, 26, 0.6);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.15);
    
    --accent-cyan: #00f2fe;
    --accent-indigo: #8a2be2;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-gold: #f59e0b;
    --accent-red: #ef4444;
    
    --glow-cyan: 0 0 15px rgba(0, 242, 254, 0.4);
    --glow-indigo: 0 0 15px rgba(138, 43, 226, 0.4);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --blur-strength: blur(12px) saturate(180%);
}

/* Global Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

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

/* Ambient glow bubbles floating behind layout */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}
.spot-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan), var(--accent-blue));
    top: -100px;
    left: -100px;
}
.spot-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-indigo), var(--accent-purple));
    bottom: -150px;
    right: -150px;
}

/* Utility Helpers */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.flex-start {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}
.hidden {
    display: none !important;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Custom Styled Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Glassmorphic Panel Base */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: var(--blur-strength);
    -webkit-backdrop-filter: var(--blur-strength);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    border-radius: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Buttons */
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    color: #fff;
    box-shadow: var(--glow-indigo);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}
.btn-success:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}
.btn-quick-cmd {
    background: rgba(0, 242, 254, 0.05);
    border-color: rgba(0, 242, 254, 0.2);
    color: var(--accent-cyan);
    padding: 4px 10px;
    font-size: 11px;
    font-family: var(--font-mono);
}
.btn-quick-cmd:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-icon:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}
.btn-full {
    width: 100%;
}

/* Form Inputs */
.input-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.input-group label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
input[type="text"], input[type="password"] {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 13px;
    transition: all 0.3s ease;
}
input[type="text"]:focus, input[type="password"]:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.2);
}

/* Errors */
.error-message {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 10px;
    font-size: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   AUTHENTICATION SHIELD SCREEN
   ========================================================================== */
.auth-wrapper {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 10;
}
.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 36px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(13, 17, 30, 0.7);
}
.logo-glow-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    color: #fff;
    font-size: 28px;
    margin: 0 auto 20px;
    box-shadow: var(--glow-cyan);
}
.auth-header h1 {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.auth-header p {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 28px;
}
.auth-footer {
    font-size: 11px;
    text-align: center;
    margin-top: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ==========================================================================
   MAIN DASHBOARD WORKSPACE
   ========================================================================== */
.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    padding: 12px;
    gap: 12px;
    position: relative;
    z-index: 10;
}

/* Header bar */
.app-header {
    height: 64px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.neon-icon {
    color: var(--accent-cyan);
    font-size: 20px;
    filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.5));
}
.brand-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.brand-title span {
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Project selector */
.project-dropdown-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 28px;
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
}
#project-selector {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
#project-selector:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Badges */
.status-indicator-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.status-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.status-badge.connected {
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}
.pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}
#active-path-label {
    font-family: var(--font-mono);
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Layout container */
.main-content-layout {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    gap: 12px;
}

/* Top rail tab selector */
.tab-navigation-bar {
    height: 52px;
    padding: 0 8px;
    justify-content: flex-start;
    gap: 8px;
    flex-shrink: 0;
}
.tab-button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.tab-button:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}
.tab-button.active {
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.25);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}
.tab-button.active i {
    filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.8));
}

/* Tab Panels */
.tab-content-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}
.tab-panel {
    display: none;
    height: 100%;
    width: 100%;
}
.tab-panel.active {
    display: block;
}

/* ==========================================================================
   TAB 1: WORKSPACE & CODE EDITOR LAYOUT
   ========================================================================== */
.workspace-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100%;
    gap: 12px;
}

/* Left explorer sidebar */
.file-explorer-sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sidebar-header {
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.sidebar-header h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.explorer-actions {
    display: flex;
    gap: 2px;
}

/* File tree tree-view root */
.file-tree-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px 8px;
}
.file-tree-node {
    user-select: none;
    font-family: var(--font-sans);
    font-size: 13px;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: background-color 0.15s ease;
}
.file-tree-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 6px;
}
.file-tree-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
}
.file-tree-item.selected {
    background-color: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: #c084fc;
}
.file-tree-label {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-tree-label i {
    width: 16px;
    text-align: center;
}
.file-tree-label .fa-folder {
    color: var(--accent-gold);
}
.file-tree-label .fa-folder-open {
    color: var(--accent-gold);
}
.file-tree-label .fa-file-code {
    color: var(--accent-blue);
}
.file-tree-node-children {
    padding-left: 14px;
    border-left: 1px dashed rgba(255, 255, 255, 0.05);
    margin-left: 15px;
}

/* Inline action buttons on file tree items */
.item-actions {
    display: none;
    gap: 2px;
}
.file-tree-item:hover .item-actions {
    display: flex;
}
.btn-tree-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    font-size: 11px;
    border-radius: 4px;
    transition: color 0.15s, background-color 0.15s;
}
.btn-tree-action:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.1);
}
.btn-tree-action.delete-action:hover {
    color: var(--accent-red);
    background-color: rgba(239, 68, 68, 0.1);
}

/* Right Editor Window */
.editor-workspace {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* No file placeholder card */
.editor-placeholder {
    height: 100%;
    width: 100%;
    padding: 30px;
    text-align: center;
}
.placeholder-icon {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.03);
    margin-bottom: 20px;
}
.editor-placeholder h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}
.editor-placeholder p {
    color: var(--text-muted);
    font-size: 13px;
    max-width: 320px;
    margin-bottom: 24px;
}
.shortcut-hints {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hint {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-dim);
}
.hint kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* Open file editor wrapper */
.editor-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.editor-toolbar {
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.editor-file-title {
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.file-dirty-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-purple);
    border-radius: 50%;
    display: none;
    box-shadow: 0 0 5px var(--accent-purple);
}
.file-dirty-dot.dirty {
    display: inline-block;
}
.editor-autosave-msg {
    font-size: 12px;
    margin-right: 12px;
}
.monaco-mount-point {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    background-color: #1e1e1e; /* Standard Monaco background color */
}

/* ==========================================================================
   TAB 2: INTERACTIVE WEB TERMINAL LAYOUT
   ========================================================================== */
.terminal-workspace {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.terminal-toolbar {
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.toolbar-title {
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.terminal-quick-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.action-label {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
}

/* Xterm Mount Target container */
.xterm-mount-point {
    flex-grow: 1;
    background-color: #070913;
    padding: 12px;
    overflow: hidden;
}
/* Ensure Xterm text fills fit addon dimensions cleanly */
.xterm {
    padding: 4px;
}
.xterm-viewport {
    background-color: #070913 !important;
}

.terminal-footer {
    height: 36px;
    padding: 0 16px;
    font-size: 11px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* ==========================================================================
   TAB 3: ANTIGRAVITY AI AGENT ORCHESTRATOR LAYOUT
   ========================================================================== */
.agent-workspace-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    height: 100%;
    gap: 12px;
}

/* Left panel chat container */
.chat-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.panel-header {
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.panel-header h3 {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Chat bubble listing */
.chat-messages-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.chat-bubble {
    gap: 12px;
    max-width: 85%;
    animation: slideUp 0.3s ease;
}
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 14px;
}
.chat-bubble.agent-message .avatar {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}
.chat-bubble.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.chat-bubble.user-message .avatar {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}
.message-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13.5px;
    line-height: 1.6;
}
.chat-bubble.agent-message .message-content {
    border-top-left-radius: 2px;
}
.chat-bubble.user-message .message-content {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.25);
    border-top-right-radius: 2px;
}
.message-content p {
    margin-bottom: 8px;
}
.message-content p:last-child {
    margin-bottom: 0;
}
.message-content pre {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    overflow-x: auto;
    margin: 10px 0;
}
.message-content code {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 12px;
}
.message-content pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* Streaming placeholder animation */
.bubble-loader {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.bubble-loader span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    animation: wave 1.2s infinite ease-in-out;
}
.bubble-loader span:nth-child(2) { animation-delay: 0.2s; }
.bubble-loader span:nth-child(3) { animation-delay: 0.4s; }
.loader-status {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-style: italic;
    margin-left: 8px;
    animation: fadeIn 0.3s ease;
}

/* Prompt writing box */
.chat-input-bar {
    height: 64px;
    padding: 10px 20px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}
#agent-chat-form {
    height: 100%;
    width: 100%;
    gap: 12px;
}
#agent-prompt {
    flex-grow: 1;
    height: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 13px;
    padding: 0 16px;
}
#agent-prompt:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}
#btn-send-prompt {
    height: 100%;
    width: 44px;
    border-radius: 8px;
    flex-shrink: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    box-shadow: var(--glow-cyan);
}

/* Right Panel: Inner thoughts log */
.thoughts-sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.thoughts-badge {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--accent-cyan);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.thoughts-log-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    background-color: rgba(5, 7, 15, 0.4);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
}
.thoughts-placeholder {
    height: 100%;
    width: 100%;
}
.thoughts-placeholder .placeholder-icon {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.03);
    margin-bottom: 12px;
}
.thoughts-placeholder h5 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}
.thoughts-placeholder p {
    color: var(--text-dim);
    font-size: 11px;
}

/* Thought log message formatting */
.thought-block {
    border-left: 2px solid var(--accent-cyan);
    padding-left: 10px;
    margin-bottom: 12px;
    animation: fadeIn 0.25s ease;
}
.thought-header {
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.thought-body {
    color: var(--text-muted);
}
.tool-call-block {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 2px solid var(--accent-gold);
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.tool-call-header {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 11px;
    margin-bottom: 4px;
}
.tool-call-body {
    color: var(--text-muted);
    font-size: 11.5px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ==========================================================================
   MODALS AND DIALOGS
   ========================================================================== */
.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 440px;
    padding: 24px;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(13, 17, 30, 0.95);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.custom-modal::backdrop {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}
.custom-modal h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.custom-modal p {
    color: var(--text-muted);
    font-size: 12.5px;
    margin-bottom: 20px;
}
.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}
.toast {
    min-width: 260px;
    max-width: 380px;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-main);
    animation: slideInLeft 0.25s cubic-bezier(0, 0, 0.2, 1);
}
.toast.success { border-left: 4px solid var(--accent-green); }
.toast.error { border-left: 4px solid var(--accent-red); }
.toast.info { border-left: 4px solid var(--accent-blue); }

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes slideInLeft {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes wave {
    0%, 60%, 100% { transform: initial; }
    30% { transform: translateY(-5px); }
}
.fade-in { animation: fadeIn 0.4s ease; }
.blink { animation: fadeIn 1s infinite alternate; }

/* Premium Collapsible Accordion for Thoughts Sidebar */
.premium-accordion {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
    width: 100%;
}
.premium-accordion:hover {
    border-color: rgba(255, 255, 255, 0.08);
}
.premium-accordion[open] {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.025);
}
.accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* Hide default chrome details arrow */
    user-select: none;
    outline: none;
}
.accordion-summary::-webkit-details-marker {
    display: none; /* Hide default safari details arrow */
}
.accordion-arrow {
    font-size: 9px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}
.premium-accordion[open] .accordion-arrow {
    transform: rotate(180deg);
}
.accordion-content {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 8px 10px;
    background: #04060d;
}
.accordion-content pre {
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 240px;
    overflow-y: auto;
}

/* Flex layout for headers */
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-accent {
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.3);
    color: var(--accent-gold);
}
.badge-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* Force stop button style */
.btn-kill-task {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fb7185;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.1);
}
.btn-kill-task:hover {
    background: rgba(244, 63, 94, 0.3);
    border-color: #f43f5e;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
    transform: translateY(-1px);
}
.btn-kill-task:active {
    transform: translateY(1px);
    box-shadow: 0 0 5px rgba(244, 63, 94, 0.2);
}
.gap-8 {
    gap: 8px;
}
