AI-agent / app /static /styles.css
riddhiman's picture
Replace all files: ai-shell-workstation-provider-upgrade
850576b verified
:root {
--bg: #0b1020;
--panel: rgba(17, 24, 39, 0.78);
--panel-strong: #111827;
--panel-soft: #172033;
--border: rgba(148, 163, 184, 0.18);
--text: #e5e7eb;
--muted: #94a3b8;
--accent: #7c3aed;
--accent-2: #06b6d4;
--danger: #fb7185;
--ok: #34d399;
--warn: #fbbf24;
--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
--sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, rgba(124,58,237,.25), transparent 35%), radial-gradient(circle at top right, rgba(6,182,212,.18), transparent 30%), var(--bg); color: var(--text); font-family: var(--sans); }
button, input, textarea { font: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small-text { font-size: 12px; }
.error-text { color: var(--danger); min-height: 1.2em; }
code, pre { font-family: var(--mono); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(440px, 100%); padding: 34px; border: 1px solid var(--border); border-radius: 28px; background: rgba(15, 23, 42, .86); box-shadow: 0 24px 80px rgba(0,0,0,.35); backdrop-filter: blur(18px); }
.login-card h1 { margin: 12px 0 8px; }
.login-card label { display: grid; gap: 8px; margin-top: 18px; color: var(--muted); }
input, textarea { color: var(--text); background: rgba(2, 6, 23, .65); border: 1px solid var(--border); border-radius: 14px; padding: 11px 12px; outline: none; }
input:focus, textarea:focus { border-color: rgba(124, 58, 237, .8); box-shadow: 0 0 0 3px rgba(124,58,237,.18); }
textarea { resize: vertical; width: 100%; }
button, .linkish { border: 1px solid var(--border); color: var(--text); background: rgba(15, 23, 42, .8); border-radius: 13px; padding: 10px 13px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s ease, border-color .12s ease, background .12s ease; }
button:hover, .linkish:hover { border-color: rgba(148, 163, 184, .5); transform: translateY(-1px); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: white; font-weight: 700; }
.ghost { background: rgba(15, 23, 42, .45); }
.danger { color: #fecdd3; border-color: rgba(251, 113, 133, .35); }
.mini { font-size: 12px; padding: 6px 9px; border-radius: 10px; }
.wide { width: 100%; }
.mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 24px rgba(124,58,237,.34); font-weight: 900; }
.mark.small { width: 34px; height: 34px; border-radius: 11px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar { border-right: 1px solid var(--border); background: rgba(2, 6, 23, .45); backdrop-filter: blur(16px); padding: 18px; display: flex; flex-direction: column; gap: 16px; min-height: 100vh; position: sticky; top: 0; }
.brand { display: flex; align-items: center; gap: 12px; padding: 8px 4px 14px; }
.brand small { display: block; max-width: 190px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.session-list { display: flex; flex-direction: column; gap: 8px; overflow: auto; padding-right: 2px; }
.session-item { text-align: left; padding: 12px; border-radius: 15px; background: rgba(15, 23, 42, .52); display: block; }
.session-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-item small { display: block; color: var(--muted); margin-top: 3px; }
.session-item.active { background: rgba(124,58,237,.22); border-color: rgba(124,58,237,.55); }
.sidebar-footer { margin-top: auto; }
.workspace { min-width: 0; padding: 20px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.topbar h2 { margin: 0 0 4px; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.main-grid { display: grid; grid-template-columns: minmax(420px, 1fr) 420px; gap: 16px; align-items: start; }
.card { border: 1px solid var(--border); background: var(--panel); border-radius: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.18); overflow: hidden; }
.chat-panel { min-height: 660px; display: grid; grid-template-rows: 1fr auto; }
.chat-transcript { padding: 18px; overflow: auto; max-height: 68vh; min-height: 460px; scroll-behavior: smooth; }
.empty-state { height: 100%; min-height: 300px; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 32px; }
.message { margin: 0 0 16px; display: flex; }
.message .bubble { max-width: 92%; border: 1px solid var(--border); border-radius: 18px; padding: 13px 15px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.message.owner { justify-content: flex-end; }
.message.owner .bubble { background: rgba(124,58,237,.25); border-color: rgba(124,58,237,.45); }
.message.assistant .bubble { background: rgba(15, 23, 42, .76); }
.message .role { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.composer { border-top: 1px solid var(--border); padding: 14px; background: rgba(2, 6, 23, .25); }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.settings-popover { position: relative; color: var(--muted); }
.settings-popover summary { cursor: pointer; padding: 9px 10px; border: 1px solid var(--border); border-radius: 12px; list-style: none; }
.settings-popover[open] summary { border-color: rgba(124,58,237,.55); }
.settings-grid { position: absolute; z-index: 5; bottom: 44px; left: 0; width: 310px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: #0f172a; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.settings-grid label { display: grid; gap: 5px; font-size: 12px; }
.settings-grid .check { grid-column: span 2; display: flex; align-items: center; gap: 8px; }
.settings-grid input { width: 100%; padding: 8px; }
.right-panel { display: grid; gap: 16px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--border); background: rgba(2, 6, 23, .2); }
.panel-title h3 { margin: 0; font-size: 15px; }
.log-panel { margin: 0; max-height: 180px; overflow: auto; padding: 12px 14px; white-space: pre-wrap; font-size: 12px; line-height: 1.45; }
.subtle { color: #cbd5e1; }
.shell-panel { max-height: 390px; overflow: auto; padding: 12px; display: grid; gap: 10px; }
.shell-card { border: 1px solid var(--border); background: rgba(2, 6, 23, .45); border-radius: 16px; overflow: hidden; }
.shell-card .cmd { padding: 10px 12px; border-bottom: 1px solid var(--border); color: #e0e7ff; font-family: var(--mono); font-size: 12px; word-break: break-word; }
.shell-card .meta { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 12px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); }
.shell-card pre { margin: 0; padding: 10px 12px; max-height: 170px; overflow: auto; font-size: 12px; white-space: pre-wrap; }
.shell-card .stderr { color: #fecdd3; background: rgba(127,29,29,.18); }
.shell-card .stdout { color: #d1fae5; }
.notice { border-left: 3px solid var(--warn); padding: 8px 10px; color: #fde68a; background: rgba(251,191,36,.1); border-radius: 10px; font-size: 12px; }
.approval { padding-bottom: 12px; }
.approval .body { padding: 12px 14px; display: grid; gap: 10px; }
.approval pre { margin: 0; padding: 10px; background: rgba(2,6,23,.55); border-radius: 12px; overflow: auto; }
.files-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 16px; }
.wide-file-card { grid-column: 1 / -1; }
.file-card { min-height: 230px; }
.upload-box { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.file-list { padding: 10px 14px 14px; max-height: 260px; overflow: auto; }
.file-list.compact { max-height: 320px; font-family: var(--mono); font-size: 12px; }
.file-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(148,163,184,.1); }
.file-row:last-child { border-bottom: none; }
.file-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
a.download { color: #93c5fd; text-decoration: none; }
a.download:hover { text-decoration: underline; }
.badge { color: #dbeafe; background: rgba(59,130,246,.18); border: 1px solid rgba(59,130,246,.28); border-radius: 999px; padding: 2px 7px; font-size: 11px; }
@media (max-width: 1180px) { .app-shell { grid-template-columns: 240px 1fr; } .main-grid { grid-template-columns: 1fr; } .right-panel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .app-shell { display: block; } .sidebar { position: relative; min-height: auto; } .topbar, .composer-actions, .upload-box { display: grid; } .right-panel, .files-grid { grid-template-columns: 1fr; } .settings-grid { left: auto; right: 0; } }
select { color: var(--text); background: rgba(2, 6, 23, .65); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; outline: none; }
select:focus { border-color: rgba(124, 58, 237, .8); box-shadow: 0 0 0 3px rgba(124,58,237,.18); }
.runtime-controls summary { min-width: 156px; }
.runtime-grid { width: min(520px, calc(100vw - 36px)); grid-template-columns: 1fr 1fr; }
.settings-grid .span-2 { grid-column: span 2; }
.settings-grid select, .settings-grid textarea { width: 100%; padding: 8px; }
.composer-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.status-text { color: #bae6fd; text-transform: none; letter-spacing: 0; }
.reasoning-turn { margin: 0 0 10px; border: 1px solid rgba(148, 163, 184, .14); border-radius: 12px; background: rgba(2, 6, 23, .28); }
.reasoning-turn summary { cursor: pointer; color: #c4b5fd; font-size: 12px; padding: 7px 9px; }
.reasoning-turn pre { margin: 0; padding: 8px 10px 10px; max-height: 220px; overflow: auto; color: #cbd5e1; white-space: pre-wrap; font-family: var(--mono); font-size: 12px; border-top: 1px solid rgba(148, 163, 184, .12); }
.reasoning-turn.empty-reasoning { opacity: .7; }
.reasoning-turn.empty-reasoning:not([open]) { display: none; }
.cancelled-label { margin-top: 10px; color: #fecdd3; font-size: 12px; border-left: 3px solid var(--danger); padding-left: 8px; }
.shell-card.running .cmd { background: rgba(59,130,246,.08); }
@media (max-width: 820px) { .runtime-grid { width: min(420px, calc(100vw - 36px)); } .composer-buttons { justify-content: stretch; } .composer-buttons button { flex: 1; } }