:root {
    --primary: #0EA5E9; /* Changed color scheme slightly to differentiate from BFV */
    --primary-hover: #0284C7;
    --bg: #FAFAFA;
    --surface: #FFFFFF;
    --text-primary: #0A0A0A;
    --text-secondary: #6B6B6B;
    --border: #E8E8EC;
    --success: #10B981;
    --font-display: 'General Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
}

h1 { font-size: 48px; }
h2 { font-size: 24px; margin-bottom: 16px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { line-height: 1.5; margin: 8px 0; }
.subhead { font-size: 20px; color: var(--text-secondary); }
.text-secondary { color: var(--text-secondary); font-size: 14px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}

header { margin-bottom: 48px; }

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

/* Controls */
.section-divider {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 24px;
    position: relative;
}
.section-divider:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }

.input-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

input[type="number"] {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12); }

/* Buttons */
.btn {
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0px); }

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background-color: var(--primary-hover); box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35); }

.btn-secondary { background-color: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-secondary:hover:not(:disabled) { border-color: var(--text-secondary); background-color: var(--bg); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* States */
.disabled-overlay { opacity: 0.4; pointer-events: none; transition: opacity 0.3s ease; }
.disabled-overlay.active { opacity: 1; pointer-events: auto; }

.status-indicator { display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; margin-left: 16px; }
.status-indicator.hidden { display: none; }
.dot { height: 8px; width: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.dot.success { background-color: var(--success); }

/* Log */
.log-container {
    max-height: 600px;
    overflow-y: auto;
    font-family: var(--font-code);
    font-size: 13px;
    background: var(--bg);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.log-entry { margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.log-entry:last-child { border-bottom: none; }
.log-title { font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.log-data { color: var(--text-secondary); word-break: break-all; }
.log-highlight { color: var(--text-primary); font-weight: 600; }