/**
 * LOOKME catalog/login — Tabler-style dark theme (self-hosted).
 * Applied to Tabler/Bootstrap class names used by the catalog.
 */
:root, [data-bs-theme="dark"] {
  --tblr-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tblr-body-bg: #151f2c;
  --tblr-body-color: #fcfdfe;
  --tblr-secondary: #8b9bb4;
  --tblr-muted: #6c7a91;
  --tblr-border: #243049;
  --tblr-border-color: #243049;
  --tblr-bg-surface: #1b2838;
  --tblr-bg-surface-secondary: #121a26;
  --tblr-primary: #4299e1;
  --tblr-primary-fg: #fff;
  --tblr-success: #2fb344;
  --tblr-warning: #f76707;
  --tblr-danger: #d63939;
  --tblr-azure: #4299e1;
  --tblr-orange: #f76707;
  --tblr-radius: 0.5rem;
  --tblr-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.24);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--tblr-font);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--tblr-body-color);
  background: var(--tblr-body-bg);
}

a { color: var(--tblr-primary); text-decoration: none; }
a:hover { color: #6cb3eb; }
img { max-width: 100%; }
h1, h2, h3, h4, h5, .h1, .h2 { margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--tblr-body-color); }
.h1 { font-size: 1.75rem; }
.h2 { font-size: 1.25rem; }

/* Layout */
.page { display: flex; flex-direction: column; min-height: 100vh; }
.page-wrapper { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.page-center { justify-content: center; }
.page-header { padding: 1.25rem 0 0; }
.page-body { flex: 1; padding: 1rem 0 2rem; }
.page-title { font-size: 1.5rem; font-weight: 700; line-height: 1.25; }
.page-pretitle {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tblr-secondary);
  margin-bottom: 0.2rem;
}
.container, .container-xl, .container-tight {
  width: 100%;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.container-xl { max-width: 1320px; }
.container-tight { max-width: 420px; }
.container { max-width: 960px; }

/* Grid */
.row { display: flex; flex-wrap: wrap; margin-left: -0.75rem; margin-right: -0.75rem; }
.row > * { padding-left: 0.75rem; padding-right: 0.75rem; max-width: 100%; }
.row.g-0 { margin-left: 0; margin-right: 0; }
.row.g-0 > * { padding-left: 0; padding-right: 0; }
.row.g-2 { margin-left: -0.4rem; margin-right: -0.4rem; }
.row.g-2 > * { padding-left: 0.4rem; padding-right: 0.4rem; }
.row.g-3 { margin-left: -0.5rem; margin-right: -0.5rem; }
.row.g-3 > * { padding-left: 0.5rem; padding-right: 0.5rem; }
.row-cards > * { margin-bottom: 1.25rem; }
.col, .col-12 { flex: 0 0 100%; width: 100%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-5 { flex: 0 0 41.666%; width: 41.666%; }
.col-6 { flex: 0 0 50%; width: 50%; }
.col-7 { flex: 0 0 58.333%; width: 58.333%; }
.col-4 { flex: 0 0 33.333%; width: 33.333%; }
@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%; width: 50%; }
}
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.333%; width: 33.333%; }
  .col-md-6 { flex: 0 0 50%; width: 50%; }
}
@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 33.333%; width: 33.333%; }
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.65rem 0;
  background: rgba(21, 31, 44, 0.92);
  border-bottom: 1px solid var(--tblr-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.navbar .container-xl {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--tblr-body-color) !important;
  margin-right: 0.5rem;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.sticky-top { position: sticky; top: 0; z-index: 20; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  height: 2.25rem;
  padding: 0 0.85rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  background: var(--tblr-bg-surface);
  color: var(--tblr-body-color);
  font: inherit;
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: #243447; color: var(--tblr-body-color); }
.btn-sm { height: 1.875rem; padding: 0 0.65rem; font-size: 0.75rem; }
.btn-icon { width: 2.25rem; padding: 0; }
.btn-sm.btn-icon { width: 1.875rem; height: 1.875rem; }
.btn-primary { background: var(--tblr-primary); border-color: var(--tblr-primary); color: #fff; }
.btn-primary:hover { background: #3182ce; color: #fff; }
.btn-outline-secondary {
  background: transparent;
  border-color: var(--tblr-border);
  color: var(--tblr-body-color);
}
.btn-outline-secondary:hover { background: #243447; }
.btn-warning { background: rgba(247, 103, 7, 0.16); color: #ff922b; border-color: rgba(247, 103, 7, 0.3); }
.btn-warning:hover { background: rgba(247, 103, 7, 0.28); color: #ff922b; }
.btn-success { background: rgba(47, 179, 68, 0.16); color: #51cf66; border-color: rgba(47, 179, 68, 0.3); }
.btn-success:hover { background: rgba(47, 179, 68, 0.28); color: #51cf66; }
.btn-link {
  background: none;
  border: 0;
  height: auto;
  padding: 0;
  color: var(--tblr-primary);
}
.btn-link:hover { background: none; color: #6cb3eb; text-decoration: underline; }
.btn-close {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--tblr-border);
  border-radius: 0.375rem;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238b9bb4'%3E%3Cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293A1 1 0 01.293 14.293L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3E%3C/svg%3E") center/0.7rem no-repeat;
  cursor: pointer;
}
.btn-close:hover { background-color: #243447; }
.btn-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-radius: 0.375rem 0 0 0.375rem; }
.btn-group .btn:last-child { border-radius: 0 0.375rem 0.375rem 0; }

/* Cards */
.card {
  background: var(--tblr-bg-surface);
  border: 1px solid var(--tblr-border);
  border-radius: var(--tblr-radius);
  box-shadow: var(--tblr-shadow);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--tblr-body-color);
}
.card-md { height: auto; }
.card-body { padding: 1rem 1.1rem 1.1rem; }
.card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.card:hover { border-color: #35507a; }
.card > .row { flex: 1; width: 100%; margin: 0; }
.card > .row > [class*="col-"] { display: flex; }

/* Forms */
.form-label, .label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.8125rem;
}
.form-control, .input {
  display: block;
  width: 100%;
  height: 2.375rem;
  padding: 0 0.75rem;
  border: 1px solid var(--tblr-border);
  border-radius: 0.375rem;
  background: var(--tblr-bg-surface-secondary);
  color: var(--tblr-body-color);
  font: inherit;
  outline: none;
}
.form-control:focus {
  border-color: var(--tblr-primary);
  box-shadow: 0 0 0 3px rgb(66 153 225 / 0.25);
}
.form-footer { margin-top: 1rem; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon-addon {
  position: absolute;
  left: 0.7rem;
  color: var(--tblr-secondary);
  pointer-events: none;
  z-index: 2;
}
.input-icon .form-control { padding-left: 2.15rem; }

/* Badges / chips */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 50rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  background: #243447;
  color: var(--tblr-body-color);
  border: 1px solid transparent;
}
.badge-sm { font-size: 0.625rem; padding: 0.1rem 0.4rem; }
.bg-green-lt { background: rgba(47, 179, 68, 0.16); color: #51cf66; }
.bg-purple-lt { background: rgba(174, 62, 201, 0.16); color: #cc5de8; }
.bg-blue-lt { background: rgba(66, 153, 225, 0.16); color: #74c0fc; }
.bg-yellow-lt { background: rgba(245, 159, 0, 0.16); color: #fcc419; }
.bg-azure-lt { background: rgba(66, 153, 225, 0.12); }
.bg-orange-lt { background: rgba(247, 103, 7, 0.12); }
.bg-dark { background: var(--tblr-body-bg) !important; }

/* Type + color */
.text-secondary { color: var(--tblr-secondary) !important; }
.text-primary { color: var(--tblr-primary) !important; }
.text-center { text-align: center; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.small { font-size: 0.75rem; }
.fw-bold { font-weight: 700; }
.font-monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.fs-2 { font-size: 1.5rem; }
.subheader {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tblr-secondary);
  margin-bottom: 0.4rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--tblr-secondary);
}
.breadcrumb-item { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--tblr-muted); margin-right: 0.15rem; }
.breadcrumb-item.active { color: var(--tblr-body-color); font-weight: 600; }

/* Avatar */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #243447;
  border: 1px solid var(--tblr-border);
  font-size: 1.25rem;
  line-height: 1;
}
.avatar-xl { width: 4rem; height: 4rem; font-size: 2rem; border-radius: 0.75rem; }

/* Alerts / empty */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--tblr-border);
}
.alert-danger { background: rgba(214, 57, 57, 0.12); border-color: rgba(214, 57, 57, 0.35); color: #ff6b6b; }
.empty { text-align: center; padding: 3rem 1rem; }
.empty-title { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.35rem; }
.empty-subtitle { margin: 0; }

/* Footer */
.footer { padding: 1.25rem 0 2rem; border-top: 1px solid var(--tblr-border); margin-top: auto; }
.footer-transparent { background: transparent; }

/* Misc */
.spinner-border {
  display: inline-block;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--tblr-border);
  border-top-color: var(--tblr-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hr-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0 1.25rem;
  color: var(--tblr-secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hr-text::before, .hr-text::after { content: ""; flex: 1; height: 1px; background: var(--tblr-border); }
.list-group-item {
  display: flex;
  background: var(--tblr-bg-surface);
  border: 1px solid var(--tblr-border);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  color: inherit;
}
.list-group-item-action:hover { border-color: #35507a; background: #203044; }

/* Display / flex / spacing utilities used by the catalog */
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.d-print-none {}
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.overflow-auto { overflow: auto !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.rounded { border-radius: 0.5rem !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1.25rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-auto { margin-right: auto !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-auto { margin-left: auto !important; }
.order-md-last { }

@media (min-width: 768px) {
  .d-md-block { display: block !important; }
  .d-md-none { display: none !important; }
}
@media (max-width: 767.98px) {
  .navbar .container-xl { align-items: stretch; }
  .navbar-nav { width: 100%; margin-left: 0; }
}
