/* ---------------------------------------------------------
   fusive Console – Dark Theme + Larger Font (25% increase)
---------------------------------------------------------- */

:root {
    --bg-root: #020617;          /* very dark navy */
    --bg-sidebar: #191b27;       /* sidebar */
    --bg-main: #020617;          /* main background */
    --bg-card: #0b1120;          /* cards / panels */
    --bg-card-alt: #020617;      /* alternative frame */
    --bg-chat-log: #18212f;      /*  chat log */
    --bg-chat-input: #111827;    /* dark gray input */
    --border-subtle: #1f2937;
    --text-primary: #e5e7eb;
    --text-muted: #9ca3af;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.15);
    --danger: #dc2626;

    /* Global 25% increase */
    --font-size-base: 18px;        /* was 15px */
    --font-size-small: 14px;       /* small text */
    --font-size-large: 33px;       /* larger headers */
    --font-size-medium: 20px;

    --radius-card: 14px;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-root);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                 Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: var(--font-size-base);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    font-size: var(--font-size-base);
}

a:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    color: var(--text-primary);
    height: 100vh;
    padding: 28px 22px;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    border-right: 1px solid #111827;
    font-size: var(--font-size-base);
}

.sidebar h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: var(--font-size-medium);
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--font-size-base);
}

.sidebar ul li.active a,
.sidebar ul li a:hover {
    color: var(--text-primary);
    background: rgba(37, 99, 235, 0.18);
    font-weight: 500;
}

/* Main content */
.main-content {
    margin-left: 300px;
    padding: 38px;
    background: var(--bg-main);
    min-height: 100vh;
    font-size: var(--font-size-base);
}

h1 {
    font-size: var(--font-size-large);
    margin: 0 0 22px 0;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    font-size: var(--font-size-base);
}

/* Status text */
.status-notes {
    color: #fbbf24;
    font-size: var(--font-size-small);
}

.status-error {
    color: var(--danger);
    font-size: var(--font-size-small);
}

.status-updated {
    color: var(--text-muted);
    font-size: var(--font-size-small);
}

/* Buttons */
button {
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    background: var(--accent);
    color: #f9fafb;
    font-size: var(--font-size-small);
    cursor: pointer;
    font-weight: 500;
}

button:hover {
    background: #1d4ed8;
}

button:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ---------------- Architect Chat ---------------- */

.chat-card {
    background: var(--bg-card);
}

.chat-container {
    display: flex;
    flex-direction: column;
    max-width: 960px;
    height: calc(100vh - 160px);
    min-height: 450px;
}

.chat-log {
    flex: 1;
    background: var(--bg-chat-log);
    color: var(--text-primary);
    padding: 16px;
    border-radius: 12px;
    overflow-y: auto;
    border: 1px solid rgba(15, 23, 42, 0.8);
    font-size: var(--font-size-base);
}

/* Message bubbles */
.message-row {
    margin-bottom: 12px;
    display: flex;
}

.message-row.user {
    justify-content: flex-end;
}

.message-row.assistant {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: var(--font-size-base);
    line-height: 1.45;
    white-space: pre-wrap;
}

.message-row.user .message-bubble {
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    border-bottom-right-radius: 2px;
}

.message-row.assistant .message-bubble {
    background: rgba(15, 23, 42, 0.35);
    color: #e5e7eb;
    border-bottom-left-radius: 2px;
}

/* Input */
.chat-input-row {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-input {
    width: 100%;
    min-height: 85px;
    padding: 14px 16px;
    background: var(--bg-chat-input);
    border-radius: 12px;
    border: 1px solid #374151;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    resize: vertical;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.chat-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.chat-helper {
    font-size: var(--font-size-small);
    color: var(--text-muted);
}
