/* =====================================================================
   Warp Terminal Frame — Tool #3 (Figma Exact Architecture)
   ===================================================================== */

.warp-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.warp-modal-overlay.open {
    display: flex;
    opacity: 1;
}

/* terminal-frame */
.warp-terminal-frame {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    width: 100%;
    max-width: 1040px;
    height: 700px;
    max-height: 92vh;
    background: #141414;
    border: 1px solid #333333;
    box-shadow: 0px 24px 48px rgba(0, 0, 0, 0.627451);
    border-radius: 16px;
    overflow: hidden;
    flex: none;
    order: 0;
    flex-grow: 0;
    font-family: 'JetBrains Mono', 'Geist Mono', 'IBM Plex Mono', monospace;
    position: relative;
    transform: scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.warp-modal-overlay.open .warp-terminal-frame {
    transform: scale(1);
}

/* sidebar */
.warp-sidebar {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0px;
    width: 64px;
    min-width: 64px;
    height: 100%;
    background: #111111;
    border-right: 1px solid #333333;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    z-index: 10;
}

/* sidebar-top */
.warp-sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 8px;
    width: 40px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.warp-sidebar-top::-webkit-scrollbar {
    display: none;
}

/* sidebar-bottom */
.warp-sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 12px;
    width: 40px;
    height: 40px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* Botones de la barra lateral (sidebar-btn) */
.warp-sidebar-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.15s ease;
    flex: none;
    position: relative;
}

.warp-sidebar-btn:hover {
    background: #1A1A1A;
    transform: translateY(-1px);
}

.warp-sidebar-btn.active {
    background: #1A1A1A;
    box-shadow: 0 0 0 1px #333333;
}

.warp-sidebar-btn svg {
    display: block;
    flex-shrink: 0;
}

/* main-stack */
.warp-main-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    width: calc(100% - 64px);
    height: 100%;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 1;
    min-width: 0;
}

/* title-bar */
.warp-title-bar {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px 16px;
    width: 100%;
    height: 48px;
    min-height: 48px;
    background: #111111;
    border-bottom: 1px solid #333333;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    user-select: none;
}

/* traffic-lights */
.warp-traffic-lights {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 8px;
    width: 52px;
    height: 12px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.warp-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: filter 0.15s ease;
}

.warp-light.close {
    background: #FF5F56;
}

.warp-light.minimize {
    background: #FFBD2E;
}

.warp-light.expand {
    background: #27C93F;
}

.warp-light:hover {
    filter: brightness(1.15);
}

/* tabs-container */
.warp-tabs-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 4px;
    height: 28px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* active-tab & tab item */
.warp-tab-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px 10px 4px 10px;
    gap: 8px;
    height: 28px;
    background: transparent;
    border-width: 1px 1px 0px 1px;
    border-style: solid;
    border-color: transparent;
    border-radius: 8px 8px 0px 0px;
    cursor: pointer;
    color: #888888;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Geist', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.15s ease;
    user-select: none;
}

.warp-tab-item:hover {
    color: #E2E8F0;
    background: rgba(255, 255, 255, 0.05);
}

.warp-tab-item.active {
    background: #141414;
    border-color: #333333;
    border-bottom: 1px solid #141414;
    margin-bottom: -1px;
    color: #FFFFFF;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

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

.warp-tab-item .warp-tab-icon svg {
    width: 14px;
    height: 14px;
}

.warp-tab-item .warp-tab-title {
    font-weight: 700;
    color: inherit;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.warp-tab-close {
    background: transparent;
    border: none;
    color: #666666;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    font-weight: 400;
    padding: 0 3px;
    line-height: 1;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s ease;
}

.warp-tab-close:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
}

.warp-add-tab-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #888888;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s ease;
}

.warp-add-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

/* window-actions */
.warp-window-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 12px;
    height: 16px;
    flex: none;
    order: 2;
    flex-grow: 0;
}

.warp-window-action-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}

.warp-window-action-btn:hover {
    opacity: 1;
}

/* main-terminal */
.warp-main-terminal {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 32px;
    width: 100%;
    height: calc(100% - 48px - 84px - 32px);
    background: #000000;
    overflow-y: auto;
    box-sizing: border-box;
    flex: 1;
    align-self: stretch;
    flex-grow: 1;
}

.warp-terminal-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

/* ambient-placeholder */
.warp-ambient-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 14px;
    width: 100%;
    height: 160px;
    opacity: 0.9;
    user-select: none;
    margin: auto 0;
    transition: opacity 0.2s ease;
}

.warp-ambient-placeholder.hidden {
    display: none;
}

.warp-ambient-icon-box {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 169, 37, 0.22) 0%, rgba(67, 67, 69, 0.15) 50%, transparent 72%);
    filter: drop-shadow(0 0 20px rgba(77, 169, 37, 0.3));
    transition: transform 0.2s ease;
}

.warp-ambient-icon-box:hover {
    transform: scale(1.05);
}

.warp-ambient-icon-box svg {
    width: 56px;
    height: 56px;
    display: block;
}

.warp-placeholder-title {
    font-family: 'JetBrains Mono', 'Geist Mono', monospace;
    font-weight: 600;
    font-size: 15px;
    line-height: 18px;
    text-align: center;
    color: #E2E8F0;
    letter-spacing: -0.01em;
}

.warp-placeholder-sub {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    color: #888888;
}

/* Bloques de comando y salida */
.warp-cmd-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    animation: warpFadeIn 0.18s ease;
}

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

.warp-cmd-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 600;
}

.warp-cmd-line .prompt-symbol {
    color: #10B981;
}

.warp-cmd-output {
    background: #0D0E14;
    border: 1px solid #222226;
    border-radius: 8px;
    padding: 12px 14px;
    color: #E2E8F0;
    font-size: 12.5px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
}

/* prompt-outer */
.warp-prompt-outer {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    width: 100%;
    height: 84px;
    min-height: 84px;
    background: #000000;
    flex: none;
    order: 2;
    align-self: stretch;
    flex-grow: 0;
}

/* prompt-block-input */
.warp-prompt-block-input {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
    gap: 12px;
    width: 100%;
    height: 52px;
    background: #1A1A1A;
    border: 1px solid #333333;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.warp-prompt-symbol {
    font-family: 'JetBrains Mono', monospace;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 21px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.warp-input-field {
    flex: 1;
    height: 28px;
    font-family: 'JetBrains Mono', monospace;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #FFFFFF;
    caret-color: #FFFFFF;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
}

.warp-input-field::placeholder {
    color: #666666;
}

/* prompt-actions */
.warp-prompt-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 8px;
    flex-shrink: 0;
}

/* ai-badge */
.warp-ai-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px 10px;
    gap: 6px;
    height: 26px;
    background: #1A1A1A;
    border: 1px solid #333333;
    border-radius: 6px;
    cursor: pointer;
    color: #FFFFFF;
    font-family: 'Geist', sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 14px;
}

.warp-ai-badge:hover {
    background: #252525;
}

.warp-shortcut-indicator {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    background: #2D2D44;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #8F8FA3;
}

/* run-button */
.warp-run-button {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    width: 28px;
    height: 28px;
    background: #FFFFFF;
    border: 1px solid #333333;
    border-radius: 6px;
    cursor: pointer;
    color: #000000;
    transition: transform 0.1s ease, background 0.15s ease;
}

.warp-run-button:hover {
    background: #E2E8F0;
    transform: scale(1.05);
}

.warp-run-button:active {
    transform: scale(0.95);
}

/* status-bar */
.warp-status-bar {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px 16px;
    width: 100%;
    height: 32px;
    min-height: 32px;
    background: #0A0A0A;
    border-top: 1px solid #333333;
    flex: none;
    order: 3;
    align-self: stretch;
    flex-grow: 0;
    font-size: 11px;
    color: #666666;
    font-family: 'JetBrains Mono', monospace;
}

.warp-status-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 12px;
}

.warp-status-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.warp-status-divider {
    width: 1px;
    height: 12px;
    background: #333333;
}

.warp-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
}

.warp-status-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 14px;
}

/* Sub-ventanas modulares de las herramientas del Sidebar */
.warp-tool-subwindow {
    display: none;
    position: absolute;
    top: 48px;
    left: 64px;
    right: 0;
    bottom: 32px;
    background: #141414;
    z-index: 20;
    padding: 24px;
    overflow-y: auto;
}

.warp-tool-subwindow.open {
    display: flex;
    flex-direction: column;
}


/* Workspace Centralizer & API Connection Modal */
.warp-status-clickable {
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 4px;
    padding: 2px 4px;
    margin: -2px -4px;
}

.warp-status-clickable:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #38BDF8;
}

.warp-status-clickable:hover svg path {
    fill: #38BDF8;
}

.warp-workspace-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.warp-workspace-modal-overlay.open {
    display: flex;
}

.warp-workspace-modal-card {
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    color: #F8FAFC;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: warpModalFadeIn 0.2s ease-out;
}

@keyframes warpModalFadeIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.warp-ws-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #18181B;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.warp-ws-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
}

.warp-ws-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.warp-ws-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 6px #10B981;
}

.warp-ws-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: 70vh;
}

.warp-ws-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.warp-ws-label {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 500;
}

.warp-ws-input {
    background: #09090B;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #FFFFFF;
    padding: 9px 12px;
    font-size: 13px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.warp-ws-input:focus {
    border-color: #38BDF8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.warp-ws-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px;
}

.warp-ws-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.warp-ws-stat-val {
    font-size: 13px;
    font-weight: 600;
    color: #F8FAFC;
    font-family: 'JetBrains Mono', monospace;
}

.warp-ws-stat-lbl {
    font-size: 10.5px;
    color: #64748B;
}

.warp-ws-files-box {
    background: #09090B;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    max-height: 140px;
    overflow-y: auto;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.warp-ws-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #CBD5E1;
}

.warp-ws-file-item:last-child {
    border-bottom: none;
}

.warp-ws-file-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.warp-ws-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    background: #18181B;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.warp-ws-btn {
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.warp-ws-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #CBD5E1;
}

.warp-ws-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
}

.warp-ws-btn-primary {
    background: #0284C7;
    color: #FFFFFF;
}

.warp-ws-btn-primary:hover {
    background: #0369A1;
}


/* ===== VENTANA DE API Y STORAGE CONTROLLER ===== */
.warp-api-window-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #F8FAFC;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100%;
    overflow-y: auto;
    padding-right: 4px;
}

.warp-api-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.warp-api-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.warp-api-title-box h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warp-api-tags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.warp-api-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.warp-api-tag-django {
    background: rgba(43, 138, 62, 0.2);
    color: #40C057;
    border: 1px solid rgba(43, 138, 62, 0.4);
}

.warp-api-tag-soda {
    background: rgba(14, 165, 233, 0.2);
    color: #38BDF8;
    border: 1px solid rgba(14, 165, 233, 0.4);
}

.warp-api-tag-catalyst {
    background: rgba(168, 85, 247, 0.2);
    color: #C084FC;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

/* 4 ENV GRID */
.warp-env-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.warp-env-panel {
    background: #141416;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.warp-env-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.warp-env-panel-title {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warp-env-cards-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}

.warp-env-card {
    background: #09090B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.warp-env-card-title {
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
}

.warp-env-card-key {
    font-size: 12px;
    color: #F8FAFC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.warp-env-card-token {
    font-size: 10px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.warp-env-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #A855F7;
    font-weight: bold;
}

.warp-env-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.warp-env-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #E2E8F0;
    padding: 5px 10px;
    font-size: 11.5px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'JetBrains Mono', monospace;
}

.warp-env-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border-color: #38BDF8;
}

.warp-env-btn-active {
    background: #0284C7;
    border-color: #38BDF8;
    color: #FFFFFF;
}

/* SODA STORAGE SECTION */
.warp-soda-section {
    background: #141416;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.warp-soda-pools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.warp-soda-pool-item {
    background: #09090B;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.warp-soda-pool-name {
    font-size: 12px;
    font-weight: 600;
    color: #38BDF8;
}

.warp-soda-pool-cap {
    font-size: 11px;
    color: #94A3B8;
    font-family: 'JetBrains Mono', monospace;
}

/* DEDICATED STORAGE TERMINAL & LOGS */
.warp-api-terminal-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-height: 240px;
}

.warp-api-term-box, .warp-api-logs-box {
    background: #09090B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.warp-api-term-header, .warp-api-logs-header {
    background: #18181B;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.warp-api-term-feed, .warp-api-logs-feed {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 11.5px;
    line-height: 1.45;
    color: #E2E8F0;
    max-height: 260px;
}

.warp-api-term-input-row {
    display: flex;
    align-items: center;
    background: #121214;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    gap: 6px;
}

.warp-api-term-prompt {
    color: #38BDF8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: bold;
}

.warp-api-term-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 12px;
}


/* ===== MODO DE EJECUCIÓN ACTIVA Y BLOQUES DE WARP TERMINAL ===== */
.warp-terminal-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
}

.warp-ambient-placeholder {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.warp-ambient-placeholder.hidden,
.warp-ambient-placeholder[style*="display: none"] {
    display: none !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Warp Block Card */
.warp-block-card {
    background: #0D0E14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: warpBlockSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.warp-block-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

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

.warp-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.warp-block-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.warp-block-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10.5px;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.warp-block-status.success {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.warp-block-status.error {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.warp-block-status.running {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.warp-block-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.warp-block-status.running .warp-block-dot {
    animation: warpPulseDot 1s infinite alternate;
}

@keyframes warpPulseDot {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.warp-block-cwd {
    color: #38BDF8;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 11px;
}

.warp-block-time {
    color: #64748B;
}

.warp-block-duration {
    color: #94A3B8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 4px;
    border-radius: 3px;
}

.warp-block-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.warp-block-card:hover .warp-block-actions {
    opacity: 1;
}

.warp-block-action-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 10.5px;
    cursor: pointer;
    transition: all 0.15s;
}

.warp-block-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.warp-block-prompt-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 13px;
    color: #FFFFFF;
    background: #09090B;
}

.warp-block-prompt-symbol {
    color: #10B981;
    font-weight: bold;
}

.warp-block-cmd-text {
    font-weight: 600;
    color: #F8FAFC;
}

.warp-block-output {
    padding: 12px 14px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 480px;
    overflow-y: auto;
    background: #0D0E14;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.warp-block-output.out-success {
    color: #E2E8F0;
}

.warp-block-output.out-error {
    color: #F87171;
}

.warp-block-output.out-running {
    color: #38BDF8;
}
