/* Prototype-only additions on top of the HexaMind UI kit (app.css): scrolling, links, dropdowns, toasts, form controls. */
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.content { overflow-y: auto; }
.card-head .link:hover, a.link:hover { text-decoration: underline; }
.list-item.link:hover, tr.link:hover td { background: #F8F9FC; cursor: pointer; }

/* Search box in the topbar is a real input */
.search input { border: 0; background: transparent; outline: none; flex: 1; font: inherit; color: var(--hx-text); min-width: 0; }

/* Dropdown menus (no JS: <details>) */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown .menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--hx-border); border-radius: 12px; box-shadow: var(--hx-shadow-lg); min-width: 260px; padding: 6px; z-index: 50; }
.menu-label { font-size: 11.5px; color: var(--hx-muted); padding: 6px 10px; }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; border: 0; background: none; font-size: 13px; text-align: start; color: var(--hx-text); }
.menu-item:hover, .menu-item.on { background: var(--hx-indigo-50); }

/* Toast */
.toast { display: flex; align-items: center; gap: 8px; background: var(--hx-success-bg); color: var(--hx-success); border: 1px solid #BFE6CD; border-radius: 10px; padding: 9px 14px; font-weight: 500; flex-shrink: 0; }

/* Real form controls styled like the kit */
input.input, select.select, textarea.textarea { width: 100%; }
select.select { appearance: auto; }
select.select::after { content: none; }
input[type=range] { accent-color: var(--hx-indigo-500); width: 100%; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
.btn:hover:not(:disabled) { filter: brightness(.97); }
.field-error { color: var(--hx-critical); font-size: 12px; }

/* Empty / placeholder states */
.empty { text-align: center; color: var(--hx-muted); padding: 48px 16px; }
.empty .lead-ico { margin: 0 auto 12px; width: 52px; height: 52px; }

/* Login page (no app shell) */
body.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; height: auto; }

.toast.error { background: var(--hx-critical-bg); color: var(--hx-critical); border-color: #F3C2C2; }
.toast.info { background: var(--hx-info-bg); color: var(--hx-info); border-color: #BFE0F2; }
