:root {
    --bg-main: #0a0d14;
    --bg-surface: #111726;
    --bg-card: #161f33;
    --bg-card-hover: #1c2740;
    --border-color: #24304d;
    --border-highlight: #3b82f6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #38bdf8;
    --accent-green: #22c55e;
    --accent-purple: #a855f7;
    --accent-orange: #f97316;
    --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
    --font-code: 'Fira Code', Menlo, Monaco, 'Courier New', monospace;
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 13px;
    user-select: none;
}

/* 1. LOGIN SCREEN */
.screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, #172554 0%, #0a0d14 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.login-card {
    background: rgba(22, 31, 51, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(56, 189, 248, 0.1);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: cardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
    from { opacity: 0; transform: scale(0.94) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-brand {
    text-align: center;
}

.brand-badge {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px auto;
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.6);
}

.login-brand h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.login-brand h1 span {
    color: var(--accent-blue);
}

.login-brand p {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 6px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    background: #0d1322;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 42px 12px 14px;
    color: #fff;
    font-family: var(--font-code);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.input-wrapper button {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
}

.btn-primary-glow {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary-glow:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.btn-primary-glow .arrow {
    transition: transform 0.2s;
}

.btn-primary-glow:hover .arrow {
    transform: translateX(4px);
}

.error-msg {
    color: #f87171;
    font-size: 12px;
    text-align: center;
    min-height: 16px;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 2. MAIN IDE LAYOUT */
.hidden { display: none !important; }

.ide-layout {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
}

/* =======================================================
   REFACTORIZACIÓN ESTRUCTURAL: LAYOUT NATIVO VS CODE / CURSOR
   (Titlebar nativa, Command Center y StatusBar)
   ======================================================= */

/* 1. Titlebar (Altura fija: 35px) */
#top-navbar.vscode-titlebar {
    height: 35px;
    background: #181818;
    border-bottom: 1px solid #2b2b2b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #cccccc;
    user-select: none;
    z-index: 1000;
}

/* [Izquierda]: Logo discreto + Menú Clásico de Texto */
.titlebar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.titlebar-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #e1e1e1;
    margin-right: 4px;
}

.titlebar-logo .logo-icon {
    color: #007acc;
    font-size: 13px;
}

.titlebar-logo span {
    color: #007acc;
}

.titlebar-menu {
    display: flex;
    align-items: center;
    gap: 1px;
}

.menu-item {
    padding: 3px 7px;
    border-radius: 4px;
    color: #cccccc;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* [Centro]: Command Center (Pastilla Centralizada de Búsqueda) */
.titlebar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.command-center-pill {
    width: 440px;
    max-width: 45vw;
    height: 24px;
    background: #252526;
    border: 1px solid #3c3c3c;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    cursor: pointer;
    transition: all 0.12s ease;
    user-select: none;
}

.command-center-pill:hover {
    background: #2d2d2d;
    border-color: #4f4f4f;
}

.cc-icon {
    color: #858585;
    flex-shrink: 0;
}

.cc-ws {
    color: #cccccc;
    font-size: 11.5px;
    font-weight: 500;
}

.cc-sep {
    color: #6e6e6e;
    font-size: 10px;
}

.cc-file {
    color: #9cdcfe;
    font-size: 11.5px;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 170px;
}

.cc-shortcut {
    margin-left: auto;
    color: #6e6e6e;
    font-size: 10px;
    font-family: var(--font-code);
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 4px;
    border-radius: 3px;
}

/* [Derecha]: Ventana y Acciones Planas */
.titlebar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.titlebar-btn {
    background: transparent;
    border: 1px solid transparent;
    height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    color: #cccccc;
    font-size: 11.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.12s ease;
    user-select: none;
}

.titlebar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.titlebar-btn.active {
    background: #094771;
    color: #ffffff;
}

.titlebar-btn.model-pick-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.titlebar-btn.model-pick-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.titlebar-btn .model-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.titlebar-btn .chevron {
    color: #858585;
    font-size: 10px;
    margin-left: 2px;
}

.btn-icon-only {
    width: 24px;
    padding: 0;
    justify-content: center;
    font-size: 12px;
}

/* 2. Barra de Estado Inferior Nativa (StatusBar - Altura fija: 22px) */
#bottom-statusbar.vscode-statusbar {
    height: 22px;
    background: #181818;
    border-top: 1px solid #2b2b2b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 11px;
    color: #cccccc;
    user-select: none;
    z-index: 100;
}

.status-left, .status-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    padding: 0 6px;
    cursor: pointer;
    font-size: 11px;
    color: #cccccc;
    transition: background 0.1s ease, color 0.1s ease;
}

.status-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.status-branch {
    color: #cccccc;
}

.status-problems {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sb-err {
    color: #f48771;
}

.sb-warn {
    color: #cca700;
}

.status-model-pick {
    font-weight: 500;
    color: #e1e1e1;
}

.sb-model-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bridge-status-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bridge-status-item .status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bridge-status.online .status-indicator {
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

.bridge-status.offline .status-indicator {
    background: #ef4444;
    box-shadow: none;
}

/* 3. Modal Flotante Tipo QuickPick (VS Code Command Palette) */
.quick-pick-overlay,
#quick-pick-modal,
.quick-pick-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 50px !important;
    z-index: 999999 !important;
    animation: ctxFadeIn 0.1s ease-out;
    box-sizing: border-box;
}

.quick-pick-overlay.hidden,
#quick-pick-modal.hidden {
    display: none !important;
}

.quick-pick-card {
    width: 560px;
    max-width: 92vw;
    background: #1f1f1f;
    border: 1px solid #3c3c3c;
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1000000;
}

.quick-pick-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #252526;
    border-bottom: 1px solid #2b2b2b;
}

.quick-pick-header svg {
    color: #858585;
    flex-shrink: 0;
}

#quick-pick-input {
    flex: 1;
    background: #1e1e1e;
    border: 1px solid #007acc;
    border-radius: 4px;
    padding: 5px 8px;
    color: #ffffff;
    font-size: 12px;
    outline: none;
    font-family: inherit;
}

.quick-pick-kbd {
    font-size: 10px;
    color: #858585;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: var(--font-code);
}

.quick-pick-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.qp-group-title {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    padding: 6px 8px 3px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qp-group-divider {
    height: 1px;
    background: #2b2b2b;
    margin: 4px 0;
}

.quick-pick-list .model-option,
.quick-pick-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 7px 10px;
    border-radius: 4px;
    cursor: pointer;
    color: #cccccc;
    font-size: 12px;
    transition: background 0.08s ease;
    box-sizing: border-box;
}

.quick-pick-list .model-option:hover,
.quick-pick-item:hover {
    background: #094771;
    color: #ffffff;
}

.quick-pick-list .model-option.active,
.quick-pick-item.active {
    background: rgba(9, 71, 113, 0.4);
    color: #ffffff;
    border-left: 2px solid #007acc;
}

.model-option .dot,
.quick-pick-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 8px;
}

.model-option .opt-name,
.quick-pick-item-name {
    font-weight: 500;
    color: #ffffff;
    flex-shrink: 0;
    margin-right: 8px;
    white-space: nowrap;
}

.opt-desc,
.quick-pick-desc,
.quick-pick-item-desc {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 11px;
    color: #858585;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-right: 8px;
}

.quick-pick-list .model-option:hover .opt-desc,
.quick-pick-item:hover .quick-pick-desc,
.quick-pick-item:hover .quick-pick-item-desc {
    color: #d4d4d4;
}

.opt-badge,
.opt-status-pill,
.quick-pick-badge,
.quick-pick-type,
.quick-pick-tag {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin-left: 12px !important;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
}

.opt-badge {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.opt-status-pill.online {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.opt-status-pill.offline {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Workbench Body */
#main-workbench {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 1. Activity Bar (Estándar VS Code) */
#activity-bar {
    width: 48px;
    min-width: 48px;
    background: #181818;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    z-index: 15;
    user-select: none;
}

.activity-bar-top,
.activity-bar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.activity-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #858585;
    cursor: pointer;
    position: relative;
    transition: color 0.12s ease;
    padding: 0;
}

.activity-btn:hover {
    color: #ffffff;
}

.activity-btn.active {
    color: #ffffff;
}

.activity-btn.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #007acc;
}

.activity-btn svg {
    display: block;
}

/* 2. Sidebar */
#file-explorer-sidebar {
    width: 250px;
    min-width: 180px;
    max-width: 600px;
    background: #181818;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    user-select: none;
    flex-shrink: 0;
    transition: width 0.1s ease-out;
}

#file-explorer-sidebar.resizing-no-anim {
    transition: none !important;
}

#file-explorer-sidebar.collapsed {
    width: 0 !important;
    min-width: 0 !important;
    border-right: none !important;
    overflow: hidden !important;
    display: none !important;
}

#file-explorer-sidebar.collapsed + #extensions-sidebar.hidden + #explorer-resizer {
    display: none !important;
}

.sidebar-header {
    height: 35px;
    padding: 0 8px 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #181818;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #94a3b8;
    text-transform: uppercase;
}

.sidebar-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.explorer-tool-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #858585;
    cursor: pointer;
    padding: 0;
    transition: background 0.12s ease, color 0.12s ease;
}

.explorer-tool-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.explorer-tool-btn:active {
    background: rgba(255, 255, 255, 0.15);
}

.explorer-tool-btn.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
}

.file-tree-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 0;
    background: #181818;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    line-height: 22px;
}

.file-tree-container::-webkit-scrollbar {
    width: 4px;
}

.file-tree-container::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}

.file-tree-container:hover::-webkit-scrollbar-thumb {
    background: #424242;
}

.file-tree-container::-webkit-scrollbar-thumb:hover {
    background: #686868;
}

.tree-node {
    display: flex;
    flex-direction: column;
    position: relative;
}

.tree-row {
    display: flex;
    align-items: center;
    height: 22px;
    padding-right: 8px;
    cursor: pointer;
    color: #cccccc;
    font-size: 13px;
    line-height: 22px;
    border-left: 2px solid transparent;
    transition: background 0.08s ease, color 0.08s ease;
    position: relative;
}

.tree-row:hover {
    background: #2a2d2e;
    color: #ffffff;
}

.tree-row.selected {
    background: #37373d;
    color: #ffffff;
    border-left-color: #007acc;
}

.tree-row.active-file {
    color: #ffffff;
    font-weight: 500;
}

.tree-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 22px;
    flex-shrink: 0;
    color: #858585;
}

.tree-arrow svg {
    transition: transform 0.12s ease;
}

.tree-arrow.expanded svg {
    transform: rotate(90deg);
}

.tree-arrow.empty {
    opacity: 0;
    pointer-events: none;
}

.tree-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    flex-shrink: 0;
}

.tree-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.tree-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    line-height: 22px;
    letter-spacing: -0.1px;
}

.tree-name.is-ignored {
    opacity: 0.5;
}

.tree-children {
    display: flex;
    flex-direction: column;
    position: relative;
}

.tree-indent-guide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.tree-inline-input-row {
    display: flex;
    align-items: center;
    height: 24px;
    padding-right: 8px;
    background: #2a2d2e;
}

.tree-inline-input {
    background: #3c3c3c;
    border: 1px solid #007acc;
    color: #ffffff;
    font-size: 12px;
    height: 20px;
    border-radius: 2px;
    padding: 0 6px;
    outline: none;
    width: 100%;
    font-family: inherit;
}

.tree-rename-input {
    background: #3c3c3c;
    border: 1px solid #007acc;
    color: #ffffff;
    font-size: 13px;
    height: 20px;
    border-radius: 2px;
    padding: 0 5px;
    outline: none;
    width: calc(100% - 8px);
    font-family: inherit;
    line-height: 20px;
}

/* Context Menu */
.tree-context-menu {
    position: fixed;
    z-index: 10000;
    min-width: 220px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.15);
    padding: 4px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1px;
    animation: ctxFadeIn 0.1s ease-out;
}

@keyframes ctxFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.tree-context-menu.hidden {
    display: none !important;
}

.ctx-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #cccccc;
    cursor: pointer;
    transition: background 0.08s, color 0.08s;
    user-select: none;
}

.ctx-item:hover {
    background: #007acc;
    color: #ffffff;
}

.ctx-item.ctx-danger {
    color: #f87171;
}

.ctx-item.ctx-danger:hover {
    background: #e11d48;
    color: #ffffff;
}

.ctx-icon {
    font-size: 12px;
    width: 16px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ctx-hint {
    margin-left: auto;
    font-size: 10px;
    color: #71717a;
    font-family: var(--font-code);
}

.ctx-item:hover .ctx-hint {
    color: rgba(255, 255, 255, 0.85);
}

.ctx-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 3px 0;
}

/* Center Area: Tabs + Monaco + Terminal */
#editor-and-terminal-area {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Tabs Bar (VS Code Style) */
#editor-tabs-bar {
    height: 35px;
    background: #181818;
    border-bottom: 1px solid #252526;
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    user-select: none;
}

#editor-tabs-bar::-webkit-scrollbar {
    display: none;
}

.editor-tab {
    height: 100%;
    padding: 0 10px 0 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-right: 1px solid #252526;
    background: #181818;
    color: #969696;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    border-top: 2px solid transparent;
    transition: background 0.08s, color 0.08s;
    position: relative;
    max-width: 200px;
}

.editor-tab:hover {
    background: #1f1f1f;
    color: #cccccc;
}

.editor-tab.active {
    background: #1e1e1e;
    color: #ffffff;
    border-top-color: #007acc;
    font-weight: 500;
}

.editor-tab .tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.editor-tab .tab-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.editor-tab .tab-dirty-dot {
    display: none;
    font-size: 14px;
    color: #cccccc;
    margin-left: 2px;
    line-height: 1;
}

.editor-tab.is-dirty .tab-dirty-dot {
    display: inline-block;
}

.editor-tab.is-dirty .close-btn {
    display: none;
}

.editor-tab.is-dirty:hover .tab-dirty-dot {
    display: none;
}

.editor-tab.is-dirty:hover .close-btn {
    display: inline-flex;
}

.editor-tab .close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    opacity: 0.6;
    font-size: 13px;
    margin-left: 2px;
    color: #858585;
    transition: all 0.1s ease;
}

.editor-tab .close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Breadcrumbs Bar (VS Code Style) */
.editor-breadcrumbs {
    height: 22px;
    min-height: 22px;
    background: #1e1e1e;
    border-bottom: 1px solid #282828;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #858585;
    user-select: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.editor-breadcrumbs .crumb-root {
    color: #858585;
    font-weight: 500;
}

.editor-breadcrumbs .crumb-sep {
    color: #555555;
    font-size: 10px;
}

.editor-breadcrumbs .crumb-dir {
    color: #858585;
}

.editor-breadcrumbs .crumb-filename {
    color: #cccccc;
    font-weight: 500;
}

/* Monaco Container */
#monaco-container {
    flex: 1;
    width: 100%;
    overflow: hidden;
    background: #1e1e1e;
}

/* Terminal Resizer */
.term-resizer {
    height: 6px;
    background: #2b2b2b;
    cursor: row-resize;
    transition: background 0.15s;
    z-index: 10;
}

.term-resizer:hover, .term-resizer.resizing {
    background: #007acc;
}

/* ====================================================
   TERMINAL INTEGRADA MULTI-SESIÓN ESTILO VS CODE
   ==================================================== */

#terminal-panel {
    height: 260px;
    min-height: 28px;
    max-height: 85%;
    flex-shrink: 0;
    background: #181818;
    border-top: 1px solid #2b2b2b;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.terminal-header {
    height: 28px;
    min-height: 28px;
    background: #181818;
    border-bottom: 1px solid #2b2b2b;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #cccccc;
    gap: 8px;
}

/* [Izquierda]: Pestañas de Paneles (TERMINAL | SALIDA | PROBLEMAS) */
.terminal-panel-tabs {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 4px;
}

.term-tab {
    padding: 0 8px;
    height: 100%;
    display: flex;
    align-items: center;
    color: #858585;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: all 0.1s ease;
}

.term-tab:hover {
    color: #cccccc;
}

.term-tab.active {
    color: #ffffff;
    border-bottom: 1px solid #007acc;
}

/* [Centro / Selector]: Sesiones de Terminal Activas */
.terminal-sessions-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.terminal-sessions-wrapper::-webkit-scrollbar {
    display: none;
}

.terminal-tabs-list {
    display: flex;
    align-items: center;
    gap: 3px;
}

.term-session-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    color: #858585;
    cursor: pointer;
    transition: all 0.1s ease;
    white-space: nowrap;
}

.term-session-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #cccccc;
}

.term-session-tab.active {
    background: #252526;
    border-color: #3c3c3c;
    color: #ffffff;
    font-weight: 500;
}

.term-session-tab .tab-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    font-size: 11px;
    color: #858585;
    opacity: 0.7;
    transition: all 0.1s ease;
}

.term-session-tab:hover .tab-close-btn {
    opacity: 1;
}

.term-session-tab .tab-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* [Derecha]: Acciones de Icono */
.terminal-actions-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.term-icon-btn {
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #858585;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.1s ease;
}

.term-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.term-icon-btn:active {
    background: rgba(255, 255, 255, 0.15);
}

/* Contenedores xterm multi-sesión */
#xterm-container {
    flex: 1;
    width: 100%;
    height: calc(100% - 28px);
    padding: 4px 6px;
    overflow: hidden;
    position: relative;
    background: #181818;
}

.xterm-session-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 4px 6px;
    overflow: hidden;
}

.xterm-session-wrapper.hidden {
    display: none !important;
}

/* Scrollbars nativos de xterm estilizados estilo VS Code (elimina la barra blanca) */
.xterm-viewport::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}

.xterm-viewport::-webkit-scrollbar-track {
    background: #181818 !important;
}

.xterm-viewport::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18) !important;
    border-radius: 3px !important;
}

.xterm-viewport::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}


/* Paneles de Salida y Problemas */
.terminal-view-panel {
    flex: 1;
    width: 100%;
    height: calc(100% - 28px);
    overflow-y: auto;
    padding: 8px 12px;
    background: #181818;
    color: #cccccc;
    font-size: 12px;
}

.terminal-view-panel.hidden {
    display: none !important;
}

.panel-empty-text {
    color: #858585;
    font-style: italic;
    padding: 12px 0;
}

.problems-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.08s;
}

.problem-item:hover {
    background: #2a2d2e;
}

.problem-icon {
    font-size: 13px;
    flex-shrink: 0;
    font-weight: bold;
}

.problem-icon.error {
    color: #f87171;
}

.problem-icon.warning {
    color: #fbbf24;
}

.problem-msg {
    flex: 1;
    color: #cccccc;
    font-size: 12px;
    word-break: break-word;
}

.problem-loc {
    color: #858585;
    font-size: 11px;
    font-family: var(--font-code);
}

/* Bottom Statusbar */
#bottom-statusbar {
    height: 24px;
    background: #0284c7;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-left, .status-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sep { opacity: 0.5; }

/* Toast */
.toast {
    position: fixed;
    bottom: 34px;
    right: 20px;
    background: #1e293b;
    border: 1px solid var(--accent-blue);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 99999;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   AI Split Panel (Secondary Side Bar VS Code)
   ========================================== */
.panel-resizer-vertical,
.ai-resizer {
    width: 4px;
    min-width: 4px;
    background: #252526;
    cursor: col-resize;
    transition: background 0.12s ease;
    z-index: 20;
    position: relative;
    user-select: none;
    flex-shrink: 0;
}

.panel-resizer-vertical:hover,
.panel-resizer-vertical.resizing,
.ai-resizer:hover,
.ai-resizer.resizing {
    background: #007acc;
}

.panel-resizer-vertical::after,
.ai-resizer::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -3px;
    right: -3px;
}

body.resizing-active {
    cursor: col-resize !important;
    user-select: none !important;
}

body.resizing-active iframe,
body.resizing-active .ai-frame-container {
    pointer-events: none !important;
}

.ai-side-panel {
    width: 520px;
    min-width: 280px;
    max-width: 85vw;
    background: #181818;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    transition: width 0.1s ease-out;
}

.ai-side-panel.resizing-no-anim {
    transition: none !important;
}

.ai-side-panel.maximized {
    width: calc(100vw - 310px) !important;
    max-width: calc(100vw - 310px) !important;
}

.ai-panel-header {
    height: 35px;
    background: #181818;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 14px;
    user-select: none;
}

.ai-panel-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-panel-title-wrap .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ai-panel-title {
    color: #cccccc;
}

.ai-panel-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.ai-header-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #858585;
    cursor: pointer;
    padding: 0;
    transition: all 0.12s ease;
}

.ai-header-btn.btn-combo {
    width: auto;
    padding: 0 5px;
    gap: 1px;
}

.ai-header-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.ai-header-btn:active {
    background: rgba(255, 255, 255, 0.15);
}

.header-divider-v {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
}

/* Menú More (...) en Cabecera de IA */
.ai-more-container {
    position: relative;
}

.ai-more-dropdown {
    position: absolute;
    top: 28px;
    right: 0;
    width: 180px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    padding: 4px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-more-dropdown.hidden {
    display: none !important;
}

.more-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    font-size: 11px;
    color: #cccccc;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.1s ease;
}

.more-item:hover {
    background: #007acc;
    color: #ffffff;
}

.ai-header-btn:active {
    background: rgba(255, 255, 255, 0.15);
}

.ai-frame-container {
    flex: 1;
    width: 100%;
    height: calc(100% - 35px);
    position: relative;
    background: #131314;
}

#ai-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #131314;
}

/* Modal de Activación de Extensión */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.modal-card {
    background: #161f33;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: cardEntrance 0.3s ease;
}

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

.modal-body {
    padding: 20px 18px;
}

.terms-box, .step-guide {
    background: #0d1322;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.modal-footer {
    height: 60px;
    background: #111726;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
}

/* Modal Tabs & Workspace Chooser */
.modal-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.modal-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.modal-tab-btn:hover {
    color: #fff;
    background: var(--bg-card);
}

.modal-tab-btn.active {
    background: var(--accent-blue);
    color: #fff;
}

.recent-list-container {
    max-height: 220px;
    overflow-y: auto;
    background: #0d1322;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.recent-item:hover {
    background: var(--bg-card);
    color: var(--accent-blue);
}

.recent-item .recent-name {
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recent-item .recent-path {
    font-size: 10px;
    color: var(--text-muted);
}

/* ====================================================
   OLLAMA LOCAL AI - ESTILOS NATIVOS
   ==================================================== */
/* ====================================================
   OLLAMA LOCAL CHAT - ESTILO VS CODE / COPILOT NATIVO
   ==================================================== */

.ollama-chat-container {
    display: flex;
    flex-direction: row;
    height: calc(100% - 35px);
    background: #181818;
    color: #cccccc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

.gemini-chat-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #181818;
    position: relative;
    overflow: hidden;
}

/* Toolbar de Modelo (Barra Superior del Chat) */
.ollama-model-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #1f1f1f;
    border-bottom: 1px solid #2b2b2b;
    gap: 6px;
}

.model-select-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.model-select-wrapper .status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

.model-select-wrapper .status-indicator.offline {
    background: #ef4444;
    box-shadow: none;
}

.ollama-native-select {
    flex: 1;
    background: #252526;
    border: 1px solid #3c3c3c;
    border-radius: 4px;
    color: #cccccc;
    font-size: 11.5px;
    height: 24px;
    padding: 0 6px;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.12s;
}

.ollama-native-select:focus {
    border-color: #007acc;
}

.ollama-native-select option {
    background: #1f1f1f;
    color: #cccccc;
}

/* Feed de Mensajes */
.ollama-messages-feed {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    user-select: text;
}

.ollama-empty-state {
    margin: auto;
    text-align: center;
    max-width: 260px;
    padding: 24px 10px;
    color: #858585;
}

.ollama-empty-state .empty-icon {
    font-size: 28px;
    color: #007acc;
    margin-bottom: 6px;
}

.ollama-empty-state .empty-title {
    font-size: 13px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 4px;
}

.ollama-empty-state .empty-desc {
    font-size: 11px;
    line-height: 1.4;
}

/* Burbujas de Mensaje */
.ollama-msg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
    animation: ctxFadeIn 0.1s ease-out;
}

.ollama-msg.msg-user {
    align-self: flex-end;
    max-width: 90%;
}

.ollama-msg.msg-assistant {
    align-self: flex-start;
    width: 100%;
}

.ollama-msg-author {
    font-size: 10px;
    font-weight: 600;
    color: #858585;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ollama-msg.msg-user .ollama-msg-author {
    align-self: flex-end;
    color: #9cdcfe;
}

.ollama-msg-bubble {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}

.ollama-msg.msg-user .ollama-msg-bubble {
    background: #094771;
    color: #ffffff;
    border: 1px solid #1c6ba0;
}

.ollama-msg.msg-assistant .ollama-msg-bubble {
    background: #1f1f1f;
    border: 1px solid #2b2b2b;
    color: #cccccc;
}

/* Toolbar de Bloques de Código en Respuestas de IA */
.code-block-wrapper {
    background: #141414;
    border: 1px solid #2b2b2b;
    border-radius: 6px;
    margin: 8px 0;
    overflow: hidden;
}

.code-block-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    background: #1e1e1e;
    border-bottom: 1px solid #2b2b2b;
    user-select: none;
}

.code-lang-label {
    font-size: 10px;
    font-weight: 600;
    color: #858585;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-code);
}

.code-actions-group {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.code-tool-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #cccccc;
    font-size: 10.5px;
    font-weight: 500;
    height: 22px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.1s ease;
}

.code-tool-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}

.code-tool-btn.btn-code-apply:hover {
    background: #094771;
    color: #ffffff;
    border-color: #007acc;
}

.code-tool-btn.btn-code-run-terminal:hover {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.code-block-wrapper pre {
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 8px 10px;
    overflow-x: auto;
}

.code-block-wrapper pre code {
    font-family: var(--font-code);
    font-size: 11.5px;
    line-height: 1.45;
    color: #e1e1e1;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.ollama-msg-bubble pre {
    background: #141414;
    border: 1px solid #2b2b2b;
    border-radius: 4px;
    padding: 8px 10px;
    overflow-x: auto;
    font-family: var(--font-code);
    font-size: 11.5px;
    margin: 8px 0;
    color: #e1e1e1;
}

.ollama-msg-bubble code {
    font-family: var(--font-code);
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 11px;
}

/* Composer / Input Box Copilot Style */
.ollama-composer {
    padding: 8px 10px 10px 10px;
    background: #181818;
    border-top: 1px solid #2b2b2b;
}

.composer-box {
    background: #1f1f1f;
    border: 1px solid #3c3c3c;
    border-radius: 6px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.12s, box-shadow 0.12s;
}

.composer-box:focus-within {
    border-color: #007acc;
    box-shadow: 0 0 0 1px #007acc;
}

#ollama-prompt-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 12px;
    resize: none;
    min-height: 40px;
    max-height: 140px;
    line-height: 1.4;
    font-family: inherit;
}

#ollama-prompt-input::placeholder {
    color: #6e6e6e;
}

.composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.stream-status {
    font-size: 10.5px;
    color: #858585;
}

.btn-composer-send {
    background: #007acc;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    height: 22px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: background 0.1s;
}

.btn-composer-send:hover:not(:disabled) {
    background: #0098ff;
}

.btn-composer-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   PANEL DEDICADO DEL AGENTE LOCAL (ReAct)
   ========================================== */

.agent-panel-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #090d16;
    color: #f1f5f9;
    font-family: system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

.agent-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #0d121f;
    border-bottom: 1px solid #1e293b;
}

.agent-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #f8fafc;
}

.agent-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a855f7;
    box-shadow: 0 0 8px #a855f7;
}

.agent-tag-pill {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
}

.agent-events-feed {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.04), transparent 60%);
}

.agent-welcome-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 8px;
}

.agent-avatar {
    font-size: 32px;
    margin-bottom: 8px;
}

.agent-welcome-card h4 {
    color: #f8fafc;
    font-size: 14px;
    margin: 0 0 6px 0;
}

.agent-welcome-card p {
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.agent-suggestions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-agent-chip {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-agent-chip:hover {
    background: #334155;
    color: #ffffff;
    border-color: #a855f7;
}

.agent-control-box {
    padding: 10px 12px;
    background: #0f172a;
    border-top: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agent-input-wrapper {
    position: relative;
}

.agent-input-wrapper textarea {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 10px;
    color: #f8fafc;
    font-size: 12px;
    font-family: inherit;
    resize: none;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.agent-input-wrapper textarea:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 1px #a855f7;
}

.agent-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agent-status-indicator {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.agent-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-agent-start {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-agent-start:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.btn-agent-start:disabled {
    background: #475569;
    cursor: not-allowed;
    transform: none;
}

.btn-agent-stop {
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-agent-stop:hover {
    background: #b91c1c;
}

/* =======================================================
   ZERO-BARRIER DEVELOPER EXPERIENCE (UX/UI AGENTE LOCAL)
   ======================================================= */

/* 1. Botón Contextual en la Barra de Terminal */
.term-btn-fix {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    animation: termFixPulse 2.5s infinite ease-in-out;
}

.term-btn-fix:hover {
    background: rgba(245, 158, 11, 0.35);
    border-color: #f59e0b;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

@keyframes termFixPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.6); }
}

/* 2. Switch de Vista Simple vs Técnica */
.agent-view-switch {
    display: inline-flex;
    background: #090d16;
    border-radius: 6px;
    padding: 2px;
    border: 1px solid #1e293b;
    margin-right: 6px;
}

.agent-view-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.agent-view-btn:hover {
    color: #f8fafc;
}

.agent-view-btn.active {
    background: #7c3aed;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.4);
}

/* 3. Quick Action Chips */
.agent-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.quick-chip-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 10.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.quick-chip-btn:hover {
    background: #334155;
    border-color: #a855f7;
    color: #ffffff;
    transform: translateY(-1px);
}

/* 4. Alternancia de Visibilidad Simple / Técnica */
.agent-events-feed.view-simple .card-tech-raw {
    display: none !important;
}

.agent-events-feed.view-tech .card-simple-view {
    display: none !important;
}

.agent-events-feed.view-tech .card-tech-raw {
    display: block !important;
}

/* 5. Tarjetas con Estilo Amigable (Vista Simple) */
.react-step-card.friendly-callout {
    background: rgba(56, 189, 248, 0.06);
    border-left: 3px solid #38bdf8;
    padding: 8px 10px;
    border-radius: 4px;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.4;
}

.react-step-card.friendly-action {
    background: rgba(168, 85, 247, 0.08);
    border-left: 3px solid #a855f7;
    padding: 8px 10px;
    border-radius: 4px;
    color: #f8fafc;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.react-step-card.friendly-result {
    background: rgba(16, 185, 129, 0.06);
    border-left: 3px solid #10b981;
    padding: 6px 10px;
    border-radius: 4px;
    color: #cbd5e1;
    font-size: 11.5px;
}

.react-step-card.friendly-result.error {
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid #ef4444;
    color: #fca5a5;
}

/* ====================================================
   BARRA LATERAL DE HISTORIAL - ESTILO GOOGLE GEMINI
   ==================================================== */
.gemini-history-sidebar {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    height: 100%;
    background: #131314;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, transform 0.22s ease;
    z-index: 25;
    user-select: none;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gemini-history-sidebar.collapsed {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
    border-right: none;
}

/* Cabecera con Marca y Botón Colapsar */
.gemini-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 8px 14px;
}

.gemini-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 15px;
    color: #e3e3e3;
    letter-spacing: -0.2px;
}

.gemini-sparkle-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(66, 133, 244, 0.4));
}

.gemini-brand-text {
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: #f1f5f9;
}

.gemini-icon-btn {
    background: transparent;
    border: none;
    color: #9aa0a6;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.gemini-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Botón "Nueva conversación" estilo Gemini Pill */
.gemini-action-wrap {
    padding: 6px 12px 6px 12px;
}

.gemini-pill-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #e3e3e3;
    background: #1e1f20;
    border: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
    text-align: left;
}

.gemini-pill-btn:hover {
    background: #282a2c;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
}

.gemini-btn-new-chat svg {
    flex-shrink: 0;
    color: #cbd5e1;
}

/* Buscador de conversaciones estilo Gemini */
.gemini-search-wrap {
    padding: 4px 12px 8px 12px;
}

.gemini-search-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1e1f20;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 6px 12px;
    transition: all 0.15s ease;
    color: #8e918f;
    box-sizing: border-box;
}

.gemini-search-pill:focus-within {
    border-color: rgba(66, 133, 244, 0.45);
    background: #232426;
    color: #cbd5e1;
}

.gemini-search-pill input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 12px;
    color: #e3e3e3;
    width: 100%;
}

.gemini-search-pill input::placeholder {
    color: #8e918f;
    font-size: 11.5px;
}

/* Sección Recientes */
.gemini-section-header {
    font-size: 11.5px;
    font-weight: 500;
    color: #8e918f;
    padding: 8px 16px 4px 16px;
    user-select: none;
}

/* Lista scrolleable de conversaciones */
.gemini-sessions-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 8px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.gemini-sessions-list::-webkit-scrollbar {
    width: 5px;
}

.gemini-sessions-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

/* Pill de Cada Conversación (Idéntico a Gemini) */
.gemini-session-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #c4c7c5;
    font-size: 12.5px;
    position: relative;
    min-height: 34px;
    box-sizing: border-box;
}

.gemini-session-pill:hover {
    background: #1e1f20;
    color: #e3e3e3;
}

.gemini-session-pill.active {
    background: #282a2c;
    color: #ffffff;
    font-weight: 500;
}

.gemini-session-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 18px;
}

.gemini-session-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
}

.gemini-session-action-btn {
    background: transparent;
    border: none;
    color: #8e918f;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.15s ease;
}

.gemini-session-pill:hover .gemini-session-action-btn {
    opacity: 1;
}

.gemini-session-action-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.gemini-empty-placeholder {
    padding: 24px 12px;
    text-align: center;
    color: #8e918f;
    font-size: 11.5px;
    line-height: 1.5;
}

/* Footer de Usuario estilo Gemini */
.gemini-sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #131314;
}

.gemini-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    cursor: default;
}

.gemini-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.gemini-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gemini-user-name {
    font-size: 12px;
    font-weight: 500;
    color: #e3e3e3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 15px;
}

.gemini-user-tier {
    font-size: 10.5px;
    color: #8e918f;
    line-height: 13px;
}

/* Modo Compacto en Paneles Angostos (< 480px) */
.ollama-chat-container.panel-compact .gemini-history-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.7);
    z-index: 45;
}

/* ============================================================
   15. GESTOR DE EXTENSIONES & MARKETPLACE (GalarzaIDE)
   ============================================================ */
#extensions-sidebar {
    width: 280px;
    min-width: 220px;
    max-width: 600px;
    background: #181818;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    user-select: none;
    flex-shrink: 0;
    transition: width 0.1s ease-out;
    height: 100%;
    overflow: hidden;
}

#extensions-sidebar.resizing-no-anim {
    transition: none !important;
}

#extensions-sidebar.hidden {
    display: none !important;
}

/* Buscador de Extensiones */
.extensions-search-bar {
    padding: 8px 12px;
    background: #181818;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ext-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 5px 9px;
    gap: 7px;
    color: #94a3b8;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ext-search-input-wrapper:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
    color: #38bdf8;
}

.ext-search-input-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: #f1f5f9;
    font-size: 12px;
    width: 100%;
    font-family: inherit;
}

.ext-search-input-wrapper input::placeholder {
    color: #64748b;
}

.ext-clear-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    border-radius: 4px;
}

.ext-clear-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Pestañas / Filtros de categorías */
.extensions-tabs-filter {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.18);
    overflow-x: auto;
    scrollbar-width: none;
}

.extensions-tabs-filter::-webkit-scrollbar {
    display: none;
}

.ext-tab {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ext-tab:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
}

.ext-tab.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.25);
    font-weight: 600;
}

.ext-tab-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
}

.ext-tab.active .ext-tab-badge {
    background: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
}

/* Lista de Extensiones */
.extensions-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.extension-card {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 10px;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.extension-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: #232326;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.extension-card.theme-applied {
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(34, 197, 94, 0.04);
}

.ext-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: #27272a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.ext-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ext-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ext-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.ext-card-title-group {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.ext-card-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ext-verified-badge {
    font-size: 10px;
    color: #38bdf8;
    flex-shrink: 0;
    line-height: 1;
}

.ext-card-version {
    font-size: 10px;
    color: #64748b;
    font-family: 'Fira Code', monospace;
    flex-shrink: 0;
}

.ext-card-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
    margin: 2px 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ext-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10.5px;
    color: #64748b;
    margin-bottom: 6px;
}

.ext-card-author {
    color: #94a3b8;
    font-weight: 500;
}

.ext-card-stat {
    display: flex;
    align-items: center;
    gap: 3px;
}

.ext-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-ext {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-ext-install {
    background: #0284c7;
    color: #ffffff;
    border-color: #0ea5e9;
}

.btn-ext-install:hover {
    background: #0369a1;
    border-color: #38bdf8;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.btn-ext-uninstall {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
}

.btn-ext-uninstall:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.btn-ext-apply-theme {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

.btn-ext-apply-theme:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
}

.btn-ext-applied {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.35);
    cursor: default;
}

.btn-ext-openvsx {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
}

.btn-ext-openvsx:hover {
    background: rgba(168, 85, 247, 0.22);
    border-color: #a855f7;
}

.ext-badge-tag {
    font-size: 9.5px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    text-transform: uppercase;
}

.ext-empty-state {
    text-align: center;
    padding: 40px 16px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ext-empty-icon {
    font-size: 32px;
    opacity: 0.6;
}

.ext-empty-text {
    font-size: 12px;
    line-height: 1.4;
}

.ext-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 10px;
    color: #38bdf8;
    font-size: 12px;
}

.ext-loader-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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



