:root {
--blue: #0a4f8c;
--blue-dark: #073a68;
--bg: #f4f6f9;
--card: #ffffff;
--text: #1c2733;
--muted: #64748b;
--border: #e2e8f0;
--danger: #b3261e;
}

* { box-sizing: border-box; }

body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background: var(--bg);
color: var(--text);
}

.topbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 32px;
background: var(--blue-dark);
color: white;
}

.topbar .brand {
color: white;
text-decoration: none;
font-weight: 700;
font-size: 1.1rem;
}
.topbar .brand span { font-weight: 400; opacity: 0.8; font-size: 0.85rem; }

.topbar nav a, .topbar nav .link-btn {
color: white;
text-decoration: none;
margin-left: 20px;
font-size: 0.95rem;
background: none;
border: none;
cursor: pointer;
}
.topbar nav a:hover, .topbar nav .link-btn:hover { text-decoration: underline; }
.topbar .btn-outline-nav {
border: 1px solid rgba(255,255,255,0.6);
padding: 6px 14px;
border-radius: 6px;
}
.inline-form { display: inline; }

.container {
max-width: 1000px;
margin: 0 auto;
padding: 32px;
}
.container.narrow { max-width: 480px; }

h1 { font-size: 1.6rem; margin-bottom: 4px; }
h2 { font-size: 1.15rem; margin-top: 32px; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 10px;
padding: 20px;
margin-bottom: 16px;
}
.card.center { text-align: center; }

a.section-card { text-decoration: none; color: inherit; display: block; transition: box-shadow 0.15s; }
a.section-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
a.section-card.highlight { border-color: var(--blue); }

.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 16px;
margin-top: 12px;
}

.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.form input, .form select, .form textarea {
font-family: inherit;
font-size: 1rem;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 6px;
}
.checkbox-row { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 400; }

.btn-primary {
background: var(--blue);
color: white;
border: none;
padding: 10px 18px;
border-radius: 6px;
font-size: 0.95rem;
cursor: pointer;
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-outline {
display: inline-block;
border: 1px solid var(--blue);
color: var(--blue);
padding: 8px 16px;
border-radius: 6px;
text-decoration: none;
font-size: 0.9rem;
}

.link-btn { background: none; border: none; color: var(--blue); cursor: pointer; text-decoration: underline; font-size: 0.9rem; padding: 0; }
.link-btn.danger { color: var(--danger); }

.alert { background: #fff4e5; border: 1px solid #f0c36d; padding: 12px 16px; border-radius: 8px; margin: 16px 0; }
.alert-error { background: #fdecea; border-color: #f5b4ae; color: var(--danger); }

.table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }

.doc-list { list-style: none; padding: 0; }
.doc-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.doc-list a { color: var(--blue); text-decoration: none; font-weight: 600; }

.chat-window {
height: 420px;
overflow-y: auto;
border: 1px solid var(--border);
border-radius: 10px;
background: white;
padding: 16px;
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 16px;
}
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 10px; font-size: 0.95rem; line-height: 1.4; white-space: pre-wrap; }
.bubble-user { align-self: flex-end; background: var(--blue); color: white; }
.bubble-bot { align-self: flex-start; background: #eef2f7; color: var(--text); }

.chat-form { display: flex; gap: 10px; }
.chat-form textarea { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.95rem; resize: vertical; }













