:root {
    --ink: #14213d;
    --ink-darker: #0d1526;
    --amber: #d97706;
    --amber-dark: #b45309;
    --cream: #faf6ef;
    --card: #fffdf9;
    --border: #e5ddd0;
    --text: #1f2430;
}

body {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    background: var(--cream);
    color: var(--text);
    margin: 0;
}

header {
    background: var(--ink-darker);
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

header h1 {
    color: var(--cream);
    margin: 0;
    letter-spacing: 0.5px;
}

#site-logo {
    width: 40px;
    height: 40px;
}

main {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px;
}

section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

h2 {
    font-weight: 600;
}

input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    background: var(--cream);
    color: var(--text);
}

button {
    padding: 10px 16px;
    background: var(--amber);
    color: var(--ink-darker);
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background: var(--amber-dark);
}

#chat-log {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.message {
    padding: 10px 14px;
    border-radius: 6px;
    max-width: 80%;
    font-size: 14px;
    white-space: pre-wrap;
}

.message.user {
    align-self: flex-end;
    background: var(--ink);
    color: var(--cream);
}

.message.ai {
    align-self: flex-start;
    background: #f1e9d8;
    color: var(--ink-darker);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
}

.bot-icon-header {
    width: 28px;
    height: 28px;
    vertical-align: middle;
}

.bot-icon-message {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

#auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    background: transparent;
    color: #7a7267;
    font-weight: 600;
    border: none;
    border-radius: 0;
    padding: 8px 4px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
}

.auth-tab:hover {
    background: transparent;
    color: var(--ink);
}

.auth-tab.active {
    color: var(--ink);
    border-bottom: 2px solid var(--amber);
}

#inventory-container {
    max-height: 320px;
    overflow-y: auto;
}

.warehouse-group {
    margin-bottom: 16px;
}

.warehouse-group h3 {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: var(--ink);
}

.warehouse-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.item-row {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'IBM Plex Mono', monospace;
}

.item-row.low-stock {
    background: #fdecc8;
    border-left: 3px solid var(--amber);
}

.no-items {
    font-size: 13px;
    color: #7a7267;
    font-style: italic;
}
