/**
 * VQ Relay Portal - Styles
 * Navy blue sidebar, white cards, light gray background
 * Ported from claude_dashboard with relay-specific additions.
 */

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
    --primary: #1e3a5f;
    --primary-light: #2a4f7f;
    --primary-dark: #152d4a;
    --secondary: #6c757d;
    --bg-body: #f5f6fa;
    --bg-card: #ffffff;
    --bg-sidebar: #1e3a5f;
    --bg-input: #f8f9fa;
    --border: #dee2e6;
    --text: #212529;
    --text-muted: #6c757d;
    --text-sidebar: rgba(255, 255, 255, 0.8);
    --text-sidebar-active: #ffffff;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-active: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   Base
   ============================================================ */
body {
    background-color: var(--bg-body);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px;
}

.card-header {
    background: var(--bg-body) !important;
    border-bottom: 1px solid var(--border) !important;
    color: var(--text) !important;
}

/* ============================================================
   Forms
   ============================================================ */
.form-control,
.form-select {
    background-color: var(--bg-card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.15) !important;
}

textarea.form-control {
    background-color: var(--bg-input) !important;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ============================================================
   Code
   ============================================================ */
code {
    color: #c7254e;
    background: var(--bg-input);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.85em;
}

pre {
    background: var(--bg-input) !important;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text) !important;
}

/* ============================================================
   Relay Thread
   ============================================================ */
.relay-pending {
    background: rgba(255, 193, 7, 0.04);
}

.relay-question {
    background: rgba(244, 162, 97, 0.06);
    border-radius: 0 6px 6px 0;
}

@keyframes relay-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.relay-pulse {
    animation: relay-pulse 2s ease-in-out infinite;
}

/* ============================================================
   Links
   ============================================================ */
a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-light);
}

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: #c1c5cc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a5ae;
}

/* ============================================================
   Table
   ============================================================ */
.table {
    color: var(--text);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(30, 58, 95, 0.04);
}

/* ============================================================
   Badge overrides
   ============================================================ */
.badge.text-bg-warning {
    color: #000 !important;
}
