/* static/style.css – Jarvis Gold/Black UI */

/* ---- Theme tokens ---- */
:root {
  --bg: #050507;
  --bg-panel: #0b0b12;
  --bg-panel-alt: #12131d;
  --gold: #f5c85b;
  --gold-soft: #fbe4a6;
  --gold-neon: #ffcc4d;
  --border-gold: #705629;
  --text-main: #f8f5e9;
  --text-muted: #a38f62;
  --accent: #ffb63b;
  --cyan: #00f6ff;
}

/* ---- Global ---- */
body {
  margin: 0;
  background:
    radial-gradient(circle at top, #2b2110 0, #050507 55%) fixed;
  color: var(--text-main);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---- Main grid ---- */
#jarvis-app {
  display: grid;
  grid-template-columns: 2.2fr 5fr 3.2fr;
  grid-gap: 18px;
  padding: 16px 18px;
  height: 80vh;
  box-sizing: border-box;
}

/* ---- Panels ---- */
.jarvis-panel {
  background:
    radial-gradient(circle at top left, #18141a 0, var(--bg-panel) 58%);
  border-radius: 14px;
  border: 1px solid rgba(255, 204, 77, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 16px 34px rgba(0, 0, 0, 0.85),
    0 0 26px rgba(255, 204, 77, 0.08);
}

/* Panel headers */
.jarvis-panel-header {
  background:
    linear-gradient(
      90deg,
      rgba(255, 204, 77, 0.25),
      rgba(0, 0, 0, 0.6)
    );
  color: var(--gold-neon);
  font-weight: 600;
  font-size: 11px;
  padding: 9px 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  border-bottom: 1px solid rgba(255, 204, 77, 0.35);
}

/* Left system activity */
.jarvis-panel-body {
  padding: 10px;
  overflow-y: auto;
  flex: 1;
  font-family: Consolas, Monaco, monospace;
  font-size: 11px;
  color: var(--text-muted);
}

/* ---- Chat column ---- */
.jarvis-middle {
  position: relative;
}

#chat-window {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 4px;
  font-size: 13px;
}

/* Chat messages */
.chat-msg {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  max-width: 86%;
}

.chat-msg .label {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 3px;
  color: var(--text-muted);
}

/* USER: right-aligned, bright gold bubble */
.chat-msg.user {
  align-items: flex-end;
}

.chat-msg.user > .label {
  color: var(--gold-soft);
  font-weight: 600;
}

.chat-msg.user > .text {
  background: linear-gradient(135deg, #fbe9b9, #f5c85b);
  color: #33240a;
  border-radius: 18px 4px 18px 18px;
  padding: 8px 12px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.65);
}

/* JARVIS: left-aligned, dark/gold bubble */
.chat-msg.jarvis {
  align-items: flex-start;
}

.chat-msg.jarvis > .label {
  color: var(--gold-neon);
  font-weight: 600;
}

.chat-msg.jarvis > .text {
  background:
    radial-gradient(circle at top left, #241b10 0, #120f0a 60%);
  color: var(--text-main);
  border-radius: 4px 18px 18px 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 204, 77, 0.45);
  box-shadow:
    0 0 12px rgba(255, 204, 77, 0.16),
    0 5px 19px rgba(0, 0, 0, 0.85);
}

/* ---- Input row ---- */
#input-row {
  display: flex;
  padding: 10px 12px 12px;
  gap: 10px;
  border-top: 1px solid rgba(255, 204, 77, 0.28);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35),
    rgba(8, 8, 8, 0.95)
  );
}

#user-input {
  flex: 1;
  resize: none;
  background-color: #050507;
  color: var(--text-main);
  border-radius: 12px;
  border: 1px solid rgba(255, 204, 77, 0.5);
  padding: 8px 10px;
  font-family: inherit;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.85);
}

#user-input::placeholder {
  color: rgba(222, 201, 150, 0.5);
}

/* ---- Buttons ---- */
#jarvis-app button {
  background:
    radial-gradient(circle at top, #21170e 0, #0b0805 60%);
  color: var(--gold-soft);
  border: 1px solid rgba(255, 204, 77, 0.75);
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 10px;
  border-radius: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition:
    background 0.14s ease-out,
    color 0.14s ease-out,
    box-shadow 0.14s ease-out,
    transform 0.06s ease-out;
}

#jarvis-app button:hover {
  background: linear-gradient(135deg, #ffcf6e, #f5b93d);
  color: #33240a;
  box-shadow:
    0 0 14px rgba(255, 204, 77, 0.75),
    0 4px 12px rgba(0, 0, 0, 0.92);
  transform: translateY(-1px);
}

#jarvis-app button:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 0 6px rgba(255, 204, 77, 0.55);
}

#jarvis-app button.active {
  background: linear-gradient(135deg, #ffcf6e, #f5b93d);
  color: #33240a;
  border-color: #ffcf6e;
}

/* ---- Video panel ---- */
#video-preview {
  width: 100%;
  height: 100%;
  background-color: #000;
  object-fit: contain;
}

#video-controls {
  display: flex;
  gap: 8px;
  padding: 10px;
}

/* ---- JARVIS “core” / voice bubble canvas ---- */
#jarvis-sphere {
  width: 100%;
  height: 220px;
  background:
    radial-gradient(circle at top, #18120a 0, #050507 72%);
  border-bottom: 1px solid rgba(255, 204, 77, 0.45);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.95),
    0 -1px 0 rgba(255, 204, 77, 0.06);
}

/* Optional scrollbar polish */
.jarvis-panel-body::-webkit-scrollbar,
#chat-window::-webkit-scrollbar {
  width: 6px;
}
.jarvis-panel-body::-webkit-scrollbar-track,
#chat-window::-webkit-scrollbar-track {
  background: transparent;
}
.jarvis-panel-body::-webkit-scrollbar-thumb,
#chat-window::-webkit-scrollbar-thumb {
  background: rgba(255, 204, 77, 0.35);
  border-radius: 3px;
}
