/* ============ GUIDE PAGE — Matches Real AuxForge App UI ============ */

/* ---------- Layout ---------- */
.guide-hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 32px;
    text-align: center;
}

.guide-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.guide-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ---------- Scenario Cards ---------- */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1080px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.scenario-card {
    background: hsl(222, 47%, 14%);
    border: 1px solid hsl(217, 19%, 25%);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, hsl(217, 91%, 60%), hsl(262, 83%, 58%));
    opacity: 0;
    transition: opacity 0.25s;
}

.scenario-card:hover,
.scenario-card.active {
    border-color: hsl(217, 91%, 60%, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(96, 165, 250, 0.1);
}

.scenario-card:hover::before,
.scenario-card.active::before {
    opacity: 1;
}

.scenario-card .sc-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.scenario-card .sc-title {
    font-size: 1rem;
    font-weight: 700;
    color: hsl(210, 40%, 98%);
    margin-bottom: 6px;
}

.scenario-card .sc-desc {
    font-size: 0.82rem;
    color: hsl(215, 20%, 65%);
    line-height: 1.5;
}

/* ---------- Step Controls ---------- */
.step-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    max-width: 1140px;
    margin: -16px auto 32px;
}

.step-btn {
    background: hsl(222, 47%, 17%);
    color: hsl(210, 40%, 98%);
    border: 1px solid hsl(217, 19%, 25%);
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.step-btn:hover {
    background: hsl(222, 47%, 22%);
    border-color: hsl(217, 91%, 60%, 0.3);
}

.step-btn.primary {
    background: hsl(217, 91%, 60%);
    border-color: transparent;
}

.step-btn.primary:hover {
    background: hsl(217, 91%, 55%);
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.25);
}

.step-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.step-indicator {
    font-size: 12px;
    color: hsl(215, 20%, 55%);
    font-family: var(--font-code);
    min-width: 80px;
    text-align: center;
}

/* ================================================================
   APP SHELL — Two-Panel Layout: Content (left) + Chat (right)
   ================================================================ */
.app-shell {
    max-width: 1140px;
    margin: 0 auto 60px;
    border-radius: 12px;
    border: 1px solid hsl(217, 19%, 25%);
    background: hsl(222, 47%, 11%);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    height: 600px;
}

/* Title Bar */
.app-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: hsl(222, 47%, 9%);
    border-bottom: 1px solid hsl(217, 19%, 22%);
    flex-shrink: 0;
}

.app-dots {
    display: flex;
    gap: 6px;
}

.app-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.app-dot.r {
    background: #ff5f57;
}

.app-dot.y {
    background: #ffbd2e;
}

.app-dot.g {
    background: #28ca41;
}

.app-title {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 600;
    color: hsl(210, 40%, 98%);
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-title .project-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(142, 71%, 45%);
    box-shadow: 0 0 6px hsl(142, 71%, 45%);
}

/* Main Body — content left, chat right */
.app-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ---- Left: Content Area ---- */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid hsl(217, 19%, 22%);
}

/* Content views (editor, terminal, postman) — only one visible at a time */
.content-view {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.content-view.active {
    display: flex;
}

/* -- Editor View -- */
.editor-view {
    flex: 1;
    display: flex;
    min-height: 0;
}

.file-explorer {
    width: 180px;
    background: hsl(222, 47%, 12%);
    border-right: 1px solid hsl(217, 19%, 22%);
    overflow-y: auto;
    flex-shrink: 0;
    font-family: var(--font-code);
    font-size: 12px;
}

.fe-header {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: hsl(215, 20%, 55%);
    padding: 8px 12px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fe-item {
    padding: 3px 12px 3px 20px;
    color: hsl(215, 20%, 65%);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.12s;
    font-size: 12px;
}

.fe-item:hover {
    background: rgba(96, 165, 250, 0.06);
}

.fe-item.active {
    background: rgba(96, 165, 250, 0.12);
    color: hsl(210, 40%, 98%);
}

.fe-item.folder {
    color: hsl(215, 20%, 75%);
    font-weight: 600;
    padding-left: 12px;
}

.fe-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.editor-tabs-bar {
    display: flex;
    background: #252526;
    border-bottom: 1px solid #1e1e1e;
    min-height: 32px;
    flex-shrink: 0;
}

.ed-tab {
    padding: 6px 14px;
    font-size: 12px;
    font-family: var(--font-code);
    color: hsl(215, 20%, 55%);
    border-right: 1px solid hsl(217, 19%, 20%);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.12s;
    white-space: nowrap;
}

.ed-tab.active {
    background: #1e1e1e;
    color: hsl(210, 40%, 98%);
    border-top: 2px solid #007acc;
}

.ed-tab .tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.editor-body {
    flex: 1;
    background: #1e1e1e;
    overflow: auto;
    font-family: var(--font-code);
    font-size: 13px;
    line-height: 1.8;
    padding: 8px 0;
}

.code-line {
    padding: 0 16px;
    white-space: pre;
    display: flex;
}

.code-line:hover {
    background: rgba(255, 255, 255, 0.03);
}

.code-line.highlight {
    background: rgba(50, 205, 50, 0.08) !important;
    border-left: 3px solid rgba(50, 205, 50, 0.4);
}

.line-num {
    display: inline-block;
    width: 32px;
    text-align: right;
    color: hsl(215, 20%, 35%);
    margin-right: 16px;
    user-select: none;
    flex-shrink: 0;
}

/* Syntax Colors */
.s-kw {
    color: #c678dd;
}

.s-str {
    color: #98c379;
}

.s-fn {
    color: #61afef;
}

.s-cm {
    color: #5c6370;
    font-style: italic;
}

.s-num {
    color: #d19a66;
}

.s-op {
    color: #abb2bf;
}

.s-tag {
    color: #e06c75;
}

.s-attr {
    color: #d19a66;
}

.s-val {
    color: #98c379;
}

.s-type {
    color: #e5c07b;
}

.s-var {
    color: #e06c75;
}

/* Editor Status Bar */
.editor-statusbar {
    height: 22px;
    background: #007acc;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    gap: 16px;
    flex-shrink: 0;
}

.statusbar-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Review bar */
.review-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px;
    background: hsl(222, 47%, 14%);
    border-top: 1px solid hsl(217, 19%, 25%);
    animation: fadeInUp 0.3s ease-out;
    flex-shrink: 0;
}

.review-bar .review-label {
    font-size: 12px;
    color: hsl(215, 20%, 65%);
}

.btn-accept {
    background: hsl(142, 71%, 45%);
    color: #fff;
    border: none;
    padding: 6px 18px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-accept:hover {
    background: hsl(142, 71%, 40%);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.btn-reject {
    background: transparent;
    color: hsl(0, 84%, 60%);
    border: 1px solid hsl(0, 84%, 60%, 0.4);
    padding: 6px 18px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reject:hover {
    background: hsl(0, 84%, 60%, 0.1);
}

/* -- Terminal View -- */
.term-header {
    display: flex;
    align-items: center;
    background: hsl(222, 47%, 12%);
    border-bottom: 1px solid hsl(217, 19%, 22%);
    padding: 0 8px;
    min-height: 32px;
    flex-shrink: 0;
}

.term-tab-item {
    padding: 6px 12px;
    font-size: 11px;
    font-family: var(--font-code);
    color: hsl(215, 20%, 55%);
    border-right: 1px solid hsl(217, 19%, 20%);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.term-tab-item.active {
    color: hsl(210, 40%, 98%);
}

.term-tab-item .ai-badge {
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 4px;
    background: hsl(262, 83%, 58%, 0.2);
    color: hsl(262, 83%, 58%);
    font-weight: 600;
}

.term-body {
    flex: 1;
    padding: 8px 14px;
    font-family: var(--font-code);
    font-size: 12px;
    line-height: 1.9;
    background: hsl(222, 47%, 8%);
    overflow-y: auto;
}

.t-line {
    color: hsl(215, 20%, 65%);
    white-space: pre;
}

.t-line.dim {
    color: hsl(215, 20%, 40%);
}

.t-line.success {
    color: hsl(142, 71%, 45%);
}

.t-line.error {
    color: hsl(0, 84%, 60%);
}

.t-line.info {
    color: hsl(217, 91%, 60%);
}

.t-prompt {
    color: hsl(142, 71%, 45%);
}

.t-cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: hsl(142, 71%, 45%);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

/* -- Postman View -- */
.postman-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: hsl(222, 47%, 12%);
    border-bottom: 1px solid hsl(217, 19%, 22%);
    flex-shrink: 0;
}

.postman-topbar .brand {
    font-size: 14px;
    font-weight: 700;
    color: hsl(210, 40%, 98%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.postman-topbar .brand-icon {
    font-size: 20px;
}

.api-tabs {
    display: flex;
    gap: 0;
    background: hsl(222, 47%, 11%);
    border-bottom: 1px solid hsl(217, 19%, 22%);
    flex-shrink: 0;
    overflow-x: auto;
}

.api-tab {
    padding: 6px 14px;
    font-size: 11px;
    font-family: var(--font-code);
    color: hsl(215, 20%, 55%);
    border-right: 1px solid hsl(217, 19%, 20%);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.api-tab.active {
    background: hsl(222, 47%, 14%);
    color: hsl(210, 40%, 98%);
}

.api-tab .method {
    font-weight: 700;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
}

.api-tab .method.get {
    background: rgba(34, 197, 94, 0.15);
    color: hsl(142, 71%, 45%);
}

.api-tab .method.post {
    background: rgba(96, 165, 250, 0.15);
    color: hsl(217, 91%, 60%);
}

.api-request {
    padding: 12px 16px;
    flex-shrink: 0;
}

.url-bar {
    display: flex;
    gap: 0;
}

.method-select {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-code);
    background: hsl(222, 47%, 14%);
    color: hsl(142, 71%, 45%);
    border: 1px solid hsl(217, 19%, 25%);
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.url-input {
    flex: 1;
    padding: 8px 14px;
    background: hsl(222, 47%, 11%);
    border: 1px solid hsl(217, 19%, 25%);
    font-family: var(--font-code);
    font-size: 13px;
    color: hsl(215, 20%, 75%);
    outline: none;
}

.send-btn {
    padding: 8px 20px;
    background: hsl(217, 91%, 60%);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.api-response {
    flex: 1;
    overflow: auto;
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.response-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    padding: 8px 0;
}

.status-badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
}

.status-badge.ok {
    background: rgba(34, 197, 94, 0.15);
    color: hsl(142, 71%, 45%);
}

.response-detail {
    color: hsl(215, 20%, 55%);
    display: flex;
    align-items: center;
    gap: 4px;
}

.response-body-area {
    flex: 1;
    background: hsl(222, 47%, 8%);
    border-radius: 8px;
    padding: 14px;
    font-family: var(--font-code);
    font-size: 12px;
    line-height: 1.7;
    color: hsl(215, 20%, 75%);
    overflow: auto;
}

.response-toolbar {
    display: flex;
    gap: 6px;
    font-size: 11px;
}

.resp-tab {
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: hsl(215, 20%, 55%);
    border: 1px solid hsl(217, 19%, 25%);
}

.resp-tab.active {
    background: hsl(217, 91%, 60%);
    color: #fff;
    border-color: transparent;
}

/* -- Browser Preview (overlay in editor) -- */
.preview-panel {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80%;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    margin: auto;
}

.preview-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #e8e8e8;
}

.preview-bar .dots {
    display: flex;
    gap: 6px;
}

.preview-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-bar .dot.r {
    background: #ff5f57;
}

.preview-bar .dot.y {
    background: #ffbd2e;
}

.preview-bar .dot.g {
    background: #28ca41;
}

.preview-url-bar {
    flex: 1;
    background: #fff;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    color: #666;
    font-family: var(--font-code);
}

.preview-body {
    padding: 20px;
    min-height: 200px;
    color: #333;
    font-family: var(--font-main);
}

.overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: fadeIn 0.2s ease-out;
}

/* ---- Right: Chat Panel ---- */
.chat-panel {
    width: 340px;
    display: flex;
    flex-direction: column;
    background: hsl(222, 47%, 11%);
    flex-shrink: 0;
}

/* Chat header with project name */
.chat-topbar {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid hsl(217, 19%, 22%);
    background: hsl(222, 47%, 10%);
    flex-shrink: 0;
}

.chat-topbar .menu-icon {
    color: hsl(215, 20%, 55%);
    font-size: 16px;
    cursor: pointer;
}

.chat-topbar .project-name {
    font-size: 14px;
    font-weight: 600;
    color: hsl(210, 40%, 98%);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-topbar .project-name .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(142, 71%, 45%);
    box-shadow: 0 0 6px hsl(142, 71%, 45%);
}

/* Chat tabs (Chat | Terminal Comms | New Chat) */
.chat-tabs {
    display: flex;
    border-bottom: 1px solid hsl(217, 19%, 22%);
    background: hsl(222, 47%, 10%);
    flex-shrink: 0;
}

.chat-tab {
    padding: 7px 14px;
    font-size: 12px;
    color: hsl(215, 20%, 55%);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-tab.active {
    color: hsl(210, 40%, 98%);
    border-bottom-color: hsl(217, 91%, 60%);
}

.chat-tab .tab-icon {
    font-size: 14px;
}

/* Chat messages */
.chat-msgs {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    max-width: 95%;
    animation: fadeInUp 0.25s ease-out;
}

.chat-bubble.user {
    background: rgba(96, 165, 250, 0.15);
    color: hsl(210, 40%, 90%);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
    background: rgba(255, 255, 255, 0.04);
    color: hsl(215, 20%, 80%);
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom-left-radius: 4px;
}

.chat-bubble .ai-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(262, 83%, 58%), hsl(217, 91%, 60%));
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

.chat-bubble .ai-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.chat-bubble .ai-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: hsl(142, 71%, 45%);
    font-weight: 600;
    margin-top: 6px;
}

.chat-bubble code {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: var(--font-code);
    font-size: 12px;
    color: #e06c75;
}

/* Action buttons in chat (orange/yellow style from real app) */
.chat-action-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    background: linear-gradient(135deg, #f59e0b, #ef8c00);
    color: #fff;
    float: right;
}

.chat-action-btn:hover {
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

/* Model selector & input bar */
.chat-model-bar {
    padding: 6px 12px;
    border-top: 1px solid hsl(217, 19%, 22%);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.model-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: hsl(215, 20%, 55%);
    background: hsl(222, 47%, 14%);
    padding: 3px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.model-selector .model-icon {
    font-size: 13px;
}

.cost-display {
    font-size: 11px;
    color: hsl(215, 20%, 45%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cost-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.chat-input-bar {
    padding: 8px 12px;
    border-top: 1px solid hsl(217, 19%, 22%);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.chat-voice-btn {
    background: none;
    border: none;
    color: hsl(215, 20%, 55%);
    font-size: 18px;
    cursor: pointer;
}

.chat-input {
    flex: 1;
    background: hsl(222, 47%, 14%);
    border: 1px solid hsl(217, 19%, 25%);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    color: hsl(210, 40%, 98%);
    font-family: var(--font-main);
    outline: none;
}

.chat-input:focus {
    border-color: hsl(217, 91%, 60%);
}

.chat-input::placeholder {
    color: hsl(215, 20%, 45%);
}

.chat-send-btn {
    background: none;
    border: none;
    color: hsl(217, 91%, 60%);
    font-size: 20px;
    cursor: pointer;
}

/* ---- Bottom Dock Bar ---- */
.dock-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    background: hsl(222, 47%, 9%);
    border-top: 1px solid hsl(217, 19%, 22%);
    flex-shrink: 0;
}

.dock-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.dock-icon:hover {
    transform: scale(1.15) translateY(-2px);
}

.dock-icon.active {
    transform: scale(1.1);
}

.dock-icon.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: hsl(210, 40%, 98%);
}

/* Dock icon colors matching real app */
.dock-icon.home {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.dock-icon.browser {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.dock-icon.terminal {
    background: linear-gradient(135deg, #10b981, #059669);
}

.dock-icon.files {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.dock-icon.ai {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.dock-icon.code {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.dock-icon.postman {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.dock-icon.db {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.dock-icon.grid {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.dock-icon.git {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.dock-icon.deploy {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.dock-icon.preview {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.dock-icon.settings {
    background: linear-gradient(135deg, #64748b, #475569);
}

.dock-icon.chat {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

/* ---------- Animations ---------- */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

@keyframes bounce-delay {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-4px);
    }
}

@keyframes panelGlow {

    0%,
    100% {
        box-shadow: inset 0 0 0 1px hsl(217, 91%, 60%, 0.3);
    }

    50% {
        box-shadow: inset 0 0 8px 1px hsl(217, 91%, 60%, 0.12);
    }
}

.panel-active {
    animation: panelGlow 2s ease-in-out infinite;
}

.typing-dots {
    display: inline-flex;
    gap: 3px;
    padding: 4px 0;
}

.typing-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: hsl(215, 20%, 55%);
    animation: bounce-delay 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .app-body {
        flex-direction: column;
    }

    .chat-panel {
        width: 100%;
        max-height: 300px;
    }

    .content-area {
        border-right: none;
        border-bottom: 1px solid hsl(217, 19%, 22%);
    }

    .file-explorer {
        display: none;
    }

    .scenario-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .scenario-grid {
        grid-template-columns: 1fr;
    }
}