/* ══════════════════════════════════════════════════════════════════
   Output & Build Settings — module styles
   Professional, responsive, light-first with graceful dark support.
   ══════════════════════════════════════════════════════════════════ */

:root {
    --ob-bg:        #f4f6fb;
    --ob-surface:   #ffffff;
    --ob-surface-2: #f8fafc;
    --ob-border:    #e6e9f0;
    --ob-border-2:  #eef1f6;
    --ob-ink:       #1e293b;
    --ob-ink-2:     #475569;
    --ob-muted:     #7c8798;
    --ob-primary:   #4f46e5;
    --ob-primary-2: #6366f1;
    --ob-shadow:    0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
    --ob-shadow-lg: 0 10px 30px rgba(16,24,40,.10);
}

.right-workspace {
    background: var(--ob-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Toolbar ─────────────────────────────────────────────────────── */
.ob-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--ob-border);
}
.ob-toolbar-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ob-toolbar-icon {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: #fff;
    background: linear-gradient(135deg, var(--ob-primary), var(--ob-primary-2));
    box-shadow: 0 6px 16px rgba(79, 70, 229, .28);
}
.ob-toolbar-titles { min-width: 0; }
.ob-toolbar-titles h6 { margin: 0; font-weight: 700; font-size: 15px; color: var(--ob-ink); letter-spacing: -.01em; }
.ob-toolbar-sub { font-size: 11.5px; color: var(--ob-muted); }
.ob-toolbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.ob-save-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: #0f766e;
    background: #ecfdf5; border: 1px solid #a7f3d0;
    padding: 5px 12px; border-radius: 999px; white-space: nowrap;
    transition: .2s;
}
.ob-save-pill.is-dirty { color: #b45309; background: #fffbeb; border-color: #fcd34d; }
.ob-save-pill.is-saving { color: var(--ob-primary); background: color-mix(in srgb, var(--ob-primary) 10%, var(--ob-surface)); border-color: color-mix(in srgb, var(--ob-primary) 30%, var(--ob-border)); }

.ob-guide-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 600; color: var(--ob-primary);
    background: color-mix(in srgb, var(--ob-primary) 10%, var(--ob-surface)); border: 1px solid color-mix(in srgb, var(--ob-primary) 30%, var(--ob-border));
    padding: 6px 13px; border-radius: 9px; cursor: pointer; transition: .15s;
}
.ob-guide-btn:hover { background: var(--ob-primary); border-color: var(--ob-primary); color: #fff; }

/* ── Content shell ───────────────────────────────────────────────── */
.ob-content { padding: 20px 22px 60px; max-width: 1080px; width: 100%; margin: 0 auto; }

/* ── Tabs ────────────────────────────────────────────────────────── */
.ob-tabs {
    display: inline-flex; gap: 4px; padding: 4px;
    background: var(--ob-surface); border: 1px solid var(--ob-border);
    border-radius: 12px; box-shadow: var(--ob-shadow); margin-bottom: 20px;
    flex-wrap: wrap;
}
.ob-tabs .nav-link {
    display: inline-flex; align-items: center; gap: 7px;
    border: 0; background: transparent; color: var(--ob-ink-2);
    font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 9px;
    transition: .15s;
}
.ob-tabs .nav-link i { font-size: 15px; opacity: .85; }
.ob-tabs .nav-link:hover { background: var(--ob-surface-2); color: var(--ob-ink); }
.ob-tabs .nav-link.active {
    color: #fff; background: linear-gradient(135deg, var(--ob-primary), var(--ob-primary-2));
    box-shadow: 0 6px 16px rgba(79, 70, 229, .26);
}

/* ── Cards ───────────────────────────────────────────────────────── */
.ob-card {
    background: var(--ob-surface);
    border: 1px solid var(--ob-border);
    border-radius: 14px;
    box-shadow: var(--ob-shadow);
    margin-bottom: 18px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.ob-card:hover { box-shadow: var(--ob-shadow-lg); }
.ob-card-head {
    display: flex; align-items: center; gap: 13px;
    padding: 15px 20px; border-bottom: 1px solid var(--ob-border-2);
    background: var(--ob-surface-2);
}
.ob-card-ic {
    width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.ic-blue   { color: #2563eb; background: #dbeafe; }
.ic-violet { color: var(--ob-primary); background: color-mix(in srgb, var(--ob-primary) 11%, var(--ob-surface)); }
.ic-green  { color: #059669; background: #d1fae5; }
.ic-amber  { color: #d97706; background: #fef3c7; }
.ic-slate  { color: #475569; background: #e2e8f0; }
.ic-rose   { color: #e11d48; background: #ffe4e6; }
.ic-teal   { color: #0d9488; background: #ccfbf1; }
.ob-card-head h6 { margin: 0; font-size: 14px; font-weight: 700; color: var(--ob-ink); }
.ob-card-head p  { margin: 2px 0 0; font-size: 12px; color: var(--ob-muted); line-height: 1.4; }
.ob-head-btn {
    margin-left: auto; width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid var(--ob-border); background: var(--ob-surface); color: var(--ob-ink-2);
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .15s;
}
.ob-head-btn:hover { background: var(--ob-primary); border-color: var(--ob-primary); color: #fff; transform: rotate(-30deg); }
.ob-head-btn .spin { display: inline-block; animation: ob-spin .6s linear infinite; }
@keyframes ob-spin { to { transform: rotate(360deg); } }
.ob-card-body { padding: 18px 20px; }

/* ── Labels, inputs, hints ───────────────────────────────────────── */
.ob-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ob-ink); margin-bottom: 6px; }
.ob-hint { font-size: 11.5px; color: var(--ob-muted); margin-top: 6px; line-height: 1.5; }
.ob-hint code, .ob-switch-text code, .ob-card-body code {
    font-size: 11px; background: color-mix(in srgb, var(--ob-primary) 11%, var(--ob-surface)); color: var(--ob-primary); padding: 1px 5px; border-radius: 4px;
}
.ob-content .form-control, .ob-content .form-select {
    font-size: 13px; border-color: var(--ob-border); color: var(--ob-ink);
    border-radius: 9px; padding: .5rem .7rem;
}
.ob-content .input-group .form-control { border-radius: 0; }
.ob-content .input-group > :first-child { border-top-left-radius: 9px; border-bottom-left-radius: 9px; }
.ob-content .input-group > :last-child  { border-top-right-radius: 9px; border-bottom-right-radius: 9px; }
.ob-content .input-group-text {
    background: var(--ob-surface-2); border-color: var(--ob-border); color: var(--ob-muted); font-size: 13px;
}
.ob-content .form-control:focus, .ob-content .form-select:focus {
    border-color: var(--ob-primary-2);
    box-shadow: 0 0 0 .18rem rgba(99, 102, 241, .18);
}
.ob-code { font-size: 12px !important; line-height: 1.55; }

/* ── Switch rows ─────────────────────────────────────────────────── */
.ob-toggle-list { display: flex; flex-direction: column; }
.ob-toggle-list .ob-switch-row { border-bottom: 1px solid var(--ob-border-2); }
.ob-toggle-list .ob-switch-row:last-child { border-bottom: 0; }
.ob-switch-row {
    display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
    padding: 11px 2px; margin: 0;
}
.ob-switch-row .form-check-switch, .ob-switch-row .form-switch { padding-left: 2.6em; }
.ob-switch-row .form-check-input { width: 2.1em; height: 1.15em; margin-top: .12em; cursor: pointer; }
.ob-switch-row .form-check-input:checked { background-color: var(--ob-primary); border-color: var(--ob-primary); }
.ob-switch-row .form-check-input:focus { box-shadow: 0 0 0 .18rem rgba(99, 102, 241, .18); border-color: var(--ob-primary-2); }
.ob-switch-text { display: flex; flex-direction: column; gap: 1px; }
.ob-switch-text b { font-size: 13px; font-weight: 600; color: var(--ob-ink); }
.ob-switch-text small { font-size: 11.5px; color: var(--ob-muted); line-height: 1.45; }

/* ── Environment presets ─────────────────────────────────────────── */
.ob-presets {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 14px; background: var(--ob-surface-2);
    border: 1px dashed var(--ob-border); border-radius: 11px;
}
.ob-presets-label { font-size: 12px; font-weight: 700; color: var(--ob-ink-2); }
.ob-preset {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 600; color: var(--ob-ink-2);
    background: var(--ob-surface); border: 1px solid var(--ob-border);
    padding: 6px 13px; border-radius: 8px; cursor: pointer; transition: .15s;
}
.ob-preset:hover { border-color: var(--ob-primary-2); color: var(--ob-primary); box-shadow: var(--ob-shadow); }
.ob-preset.is-active { color: #fff; background: linear-gradient(135deg, var(--ob-primary), var(--ob-primary-2)); border-color: transparent; }
.ob-preset-note { flex: 1 1 100%; font-size: 11px; color: var(--ob-muted); }

/* ── Stat tiles (build information) ──────────────────────────────── */
.ob-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.ob-stat {
    display: flex; align-items: center; gap: 11px;
    padding: 13px 14px; border: 1px solid var(--ob-border);
    border-radius: 11px; background: var(--ob-surface-2);
}
.ob-stat-ic {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: var(--ob-primary); background: color-mix(in srgb, var(--ob-primary) 11%, var(--ob-surface));
}
.ob-stat-meta { display: flex; flex-direction: column; min-width: 0; }
.ob-stat-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ob-muted); }
.ob-stat-value { font-size: 15px; font-weight: 700; color: var(--ob-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-info-foot {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--ob-border-2);
}
.ob-link-muted {
    margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ob-primary);
    text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
}
.ob-link-muted:hover { text-decoration: underline; }

/* ── Status badges ───────────────────────────────────────────────── */
.ob-status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.ob-status-badge.ok    { color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; }
.ob-status-badge.warn  { color: #b45309; background: #fffbeb; border: 1px solid #fcd34d; }
.ob-status-badge.bad   { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.ob-status-badge.muted { color: var(--ob-ink-2); background: var(--ob-surface-2); border: 1px solid var(--ob-border); }

/* ── Callouts ────────────────────────────────────────────────────── */
.ob-callout {
    display: flex; gap: 11px; padding: 11px 14px; border-radius: 10px;
    font-size: 12.5px; line-height: 1.55; margin-top: 14px;
}
.ob-callout i { font-size: 16px; flex: 0 0 auto; margin-top: 1px; }
.ob-callout.warn { background: #fffbeb; color: #854d0e; } .ob-callout.warn i { color: #d97706; }
.ob-callout.info { background: #eff6ff; color: #1e40af; } .ob-callout.info i { color: #2563eb; }

/* ── Dropdown polish ─────────────────────────────────────────────── */
.ob-content .dropdown-menu { font-size: 12.5px; min-width: 200px; border-color: var(--ob-border); box-shadow: var(--ob-shadow-lg); border-radius: 10px; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .ob-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .ob-content { padding: 16px 14px 48px; }
    .ob-toolbar { padding: 10px 14px; }
    .ob-toolbar-sub { display: none; }
    .ob-stats { grid-template-columns: 1fr; }
    .ob-tabs { width: 100%; }
    .ob-tabs .nav-link { flex: 1; justify-content: center; }
    .ob-tabs .nav-link span { display: none; }
    .ob-tabs .nav-link i { font-size: 17px; }
}
