*,*::before,*::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: sans-serif;
  font-size: 16px;
  background-color: #eef2f7;
  color: #333;
  margin: 0;
  padding: 5px;
  padding-bottom: 70px;
}

.nav-bar {
  background-color: #1f2d3d;
  padding: 8px;
  font-size: 1em;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.nav-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-bar li {
  margin: 0;
}
.nav-bar li.back-link {
  margin-left: auto;
}

.nav-bar a {
  color: #fff;
  text-decoration: none;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-bar .icon {
  font-size: 1.2em;
}

.nav-bar .label {
  display: none;
}

/* Global link styling to make links appear like buttons */
a {
  display: inline-block;
  background-color: #1f2d3d;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 15px;
  border-radius: 4px;
  margin: 2px 0;
}

/* Inline links used for references */
a.inline-link,
a.page-ref,
a.xref {
  display: inline;
  background: none;
  padding: 0;
  margin: 0;
  color: #0645ad;
  text-decoration: underline;
  border-radius: 0;
}

a.inline-link:hover,
a.page-ref:hover,
a.xref:hover {
  background: none;
  color: #0b0080;
}

/* Links styled as cards need dark text for readability */
a.card {
  color: #1f2d3d;
}

a:hover {
  background-color: #324a63;
}

h1, h2, h3 {
  font-family: 'Segoe UI', sans-serif;
  white-space: nowrap;
}

.content {
  margin: 20px auto;
  max-width: 800px;
}

input,
textarea,
button,
select {
  font-size: 1em;
  min-height: 44px;
  padding: 10px;
  margin: 5px 0;
  box-sizing: border-box;
}

button {
  cursor: pointer;
  white-space: nowrap;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="search"] {
  width: 100%;
}

textarea {
  width: 100%;
}

.tree {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}
.tree ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}
.tree li {
  margin: 0;
}
.tree .node {
  cursor: pointer;
}
.tree .hidden {
  display: none;
}


.leaf-content.hidden {
  display: none;
}

.card {
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 8px;
  margin: 12px 0;
}

.item-card {
  padding: 0;
  margin: 0;
}
.item-card h3 {
  margin-top: 0;
}
.item-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 10px;
}
.children {
  margin-left: 20px;
}

.leaf-box {
  padding: 1px;
  margin: 0;
}
.leaf-box.card {
  padding: 0;
}
.leaf-box h3 {
  margin-top: 0;
}
.leaf-box dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 10px;
}
.leaf-content {
  padding: 6px;
  border-radius: 0 0 4px 4px;
  background-color: #fff;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.tile-grid .tile {
  text-align: center;
  padding: 15px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  margin: 0;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #1f2d3d;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tile-grid .leaf-box {
  margin: 0;
  padding: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tile-grid .leaf-box .leaf-content {
  flex: 1 1 auto;
  overflow-y: auto;
}

.tile-grid .leaf-box dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 8px;
}

.list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.tile-grid .tile:hover {
  background-color: #f0f0f0;
}

/* tiles for hero overview */
.hero-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hero-tile a.card {
  width: 100%;
  background: none;
  border: none;
  border-radius: 6px;
  box-shadow: none;
  padding: 20px;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  color: inherit;
}
.hero-tile a.card:hover {
  background: none;
}

.hero-tile form input.pin-input {
  width: 60px;
}

.hero-name {
  display: block;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.hero-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-summary dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 10px;
  margin: 0;
}

.notes-list {
  list-style: none;
  padding-left: 1em;
}

.notes-list li {
  margin: 2px 0;
}

.note-card {
  position: relative;
  padding: 10px;
}

.note-time {
  font-size: 0.8em;
  color: #666;
}

.note-actions {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  gap: 5px;
}

.note-card.pinned {
  border-color: #ff9800;
}

.note-children {
  margin-left: 20px;
  border-left: 2px solid #ccc;
  padding-left: 10px;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-row input[type="text"],
.form-row input[type="search"],
.form-row input[type="password"],
.form-row input[type="file"],
.form-row textarea {
  flex: 1 1 auto;
}

.form-row button {
  margin-left: auto;
}

.inline-form {
  display: inline-flex;
}

/* Hero upload layout */
.hero-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.file-label {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background-color: #1f2d3d;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
}

.file-label input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-name {
  font-weight: bold;
}

.pin-label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-text {
  display: none;
}

@media (max-width: 600px) {
  .nav-bar ul {
    flex-direction: row;
    justify-content: space-around;
  }
  .nav-bar a {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }
}


@media (min-width: 700px) {
  .nav-bar .label {
    display: inline;
  }
  .btn-text {
    display: inline;
  }

  .tile-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* Snap scrolling for hero detail sections */
.snap-container {
  overflow-y: auto;
  max-height: 80vh;
  scroll-snap-type: y mandatory;
  padding-right: 10px;
}

.snap-section {
  scroll-snap-align: start;
  margin-bottom: 20px;
}

/* Generic grid for two-column layouts */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
}

.two-col dt {
  font-weight: bold;
  margin-right: 4px;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.two-col dt::after {
  content: ':';
}
.two-col dd {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  word-break: break-word;
}
.info-tile strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.info-tile .value {
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.hero-section {
  padding: 0;
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* grid layouts for hero data */
.attr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 6px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px;
}

.skill-table {
  width: 100%;
  border-collapse: collapse;
}

.skill-table th,
.skill-table td {
  padding: 2px 4px;
  border-bottom: 1px solid #ccc;
}

.skill-table .attr-col,
.skill-table .basis-col {
  display: none;
}

.skill-table th {
  text-align: left;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
}

.simple-table th,
.simple-table td {
  padding: 2px 4px;
  border-bottom: 1px solid #ccc;
  text-align: left;
}

.talent-row td {
  font-style: italic;
}

.attr-tile {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 6px;
}

/* tile look for hero sections */

.leaf-box dt,
.leaf-box dd {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.leaf-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  background-color: #f5f5f5;
  padding: 4px 6px;
  border-radius: 4px 4px 0 0;
}

.rule-btn {
  background: none;
  border: none;
  padding: 0 4px;
  font-size: 1.1em;
}
.two-col .rule-btn {
  margin-left: 0;
}

.rule-btn:hover {
  background-color: transparent;
  color: #1f2d3d;
}

.flashes {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.flashes li {
  margin: 4px 0;
  padding: 6px 10px;
  border-radius: 4px;
}

.flashes .success {
  background-color: #e8f5e8;
}

.flashes .error {
  background-color: #ffe6e6;
}

/* --- Hero overview layout additions --- */
.description-box {
  background-color: #fff8dc;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.card-section {
  background-color: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
}

.inline-value {
  display: inline-block;
  min-width: 60px;
  padding: 0.4rem 0.6rem;
  margin: 0.2rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grid-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
}

@media screen and (max-width: 600px) {
  .description-box {
    grid-template-columns: 1fr;
  }

  .tile-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .tile-grid .leaf-box dl {
    max-height: 35vh;
    overflow-y: auto;
  }

  /* compact initiative table on small screens */
  /* previously the initiative column was hidden on small screens, but
     it should remain visible to keep core information accessible */
}

/* ----- Hero detail enhancements ----- */
.hero-fixed-header {
  position: sticky;
  top: 0;
  background-color: #1f2d3d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  z-index: 10;
}
.hero-fixed-header h1 {
  margin: 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media screen and (max-width: 600px) {
  .hero-fixed-header {
    height: 40px;
    font-size: 0.9rem;
  }
}

.down-button {
  position: absolute;
  top: -20px;
  right: 0;
  padding: 8px;
  border-radius: 50%;
  text-align: center;
  background-color: #1f2d3d;
  color: #fff;
  z-index: 10;
}

@media screen and (max-width: 600px) and (orientation: landscape) {
  .hero-fixed-header {
    position: static;
  }
}

.section-header {
  cursor: pointer;
  margin: 0;
}

.section-body.collapsed {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.modal-content.compact {
  max-width: 420px;
}

.rule-content {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  width: 80vw;
}


.close-modal {
  align-self: flex-end;
  margin-bottom: 5px;
}

.initiative-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  margin-bottom: 10px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.initiative-table th,
.initiative-table td {
  padding: 6px 8px;
  font-size: 0.95em;
  line-height: 28px;
  vertical-align: middle;
  word-wrap: break-word;
}
.initiative-table th {
  background-color: #f5f5f5;
  font-weight: 600;
  text-align: left;
}
.initiative-table tr {
  border-bottom: 1px solid #ddd;
}
.initiative-table tr:last-child {
  border-bottom: none;
}
.initiative-table tr.active {
  background-color: #e8f4fc;
}
.initiative-table tr.active.assigned {
  border-left: 4px solid #e74c3c;
}
.initiative-table tr.active.border-target {
  border-left-color: #4a90e2;
}
.initiative-table tr.active.border-threat {
  border-left-color: #e74c3c;
}
.initiative-table tr.active.border-mutual {
  border-left-color: #9b59b6;
}
.initiative-table tr.target,
.initiative-table tr.threat,
.initiative-table tr.mutual {
  border-left: 4px solid transparent;
}
.initiative-table tr.target {
  border-left-color: #4a90e2;
}
.initiative-table tr.threat {
  border-left-color: #e74c3c;
}
.initiative-table tr.mutual {
  border-left-color: #9b59b6;
}

.initiative-table-wrap {
  position: relative;
  overflow-x: visible;
  width: 100%;
  margin-bottom: 10px;
}
.initiative-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.initiative-header h1 {
  font-size: 1.2em;
  margin: 0;
}
.initiative-header #rename-combat-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  background: none;
  display: inline;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.creature-detail.card {
  max-width: 600px;
  margin: 0 auto;
}
.creature-detail dl {
  margin: 0;
}
.creature-detail .two-col dt,
.creature-detail .two-col dd {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.round-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  margin: 0 15px 0 auto;
}
.round-counter {
  font-weight: bold;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background-color: #f7f7f7;
  border: 1px solid #888;
  border-radius: 4px;
  font-size: 1em;
  min-height: 0;
}
.delete-btn {
  color: red;
  background: none;
  border: none;
}
.copy-btn {
  background: none;
  border: 1px solid #888;
}
.share-container { position: relative; }
.share-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #fff;
  border: 1px solid #888;
  border-radius: 4px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1000;
}
.share-menu.hidden { display: none; }
.share-menu button {
  background: none;
  border: none;
  text-align: left;
}
.initiative-table .icon-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 0.95em;
}

/* allow state icons to grow when displaying a duration */
.initiative-table .state {
  width: auto;
  min-width: 28px;
  white-space: nowrap;
}
.initiative-table .open-participant-modal {
  background: none;
  color: inherit;
  padding: 0;
  display: inline;
}
.initiative-table .name-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.initiative-table .note-btn {
  background: none;
  border: none;
  padding: 0 4px;
  cursor: pointer;
}
.initiative-table .name-column.hero .open-participant-modal {
  font-weight: bold;
}
.initiative-table .name-column.nsc .open-participant-modal {
  font-weight: bold;
  color: #324a63;
}
.round-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #324a63;
  border: none;
  border-radius: 2px;
  color: #fff;
}
.state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  font-size: 1.2em;
  background: none;
  border: none;
}
.states-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 2px;
}
.states-column {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2px;
  width: 120px;
  min-width: 120px;
}

.states-header {
  width: 120px;
  min-width: 120px;
}
.name-column {
  position: relative;
  min-width: 25%;
  width: 25%;
}

.active-marker {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #000;
}




.notes-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-wrap: anywhere;
  white-space: normal;
}

.notes-column .note-btn {
  flex-shrink: 0;
}

.note-line {
  display: flex;
  align-items: center;
}

.notes-column .note-text {
  margin-left: 4px;
  white-space: pre-line;
  word-break: break-word;
}
.assign-info {
  display: block;
  font-size: 0.85em;
  margin-bottom: 2px;
  white-space: normal;
}
.assign-icons {
  margin-left: 4px;
  font-size: 1.1em;
}

.notes-header {
  width: auto;
}

.assign-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.assign-item {
  background: #1f2d3d;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 6px;
  cursor: pointer;
}

.assign-item.assigned {
  background: #324a63;
}

.assign-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-decoration: underline;
  font: inherit;
}

@media screen and (max-width: 600px) {
  .notes-column,
  .notes-header {
    display: none;
  }
}

.ini-column,
.ini-header {
  width: 50px;
  text-align: center;
}
.tiny-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 0.85em;
}

.states-compact select,
.states-compact input[type="number"] {
  max-width: 55px;
  margin-right: 2px;
}

.states-compact {
  display: inline-flex;
  align-items: center;
}

.states-compact button {
  margin-left: 2px;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.participant-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9em;
}

.name-row,
.state-add-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.participant-form input[type="text"],
.participant-form input[type="number"],
.participant-form select {
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.participant-form input[type="range"] {
  width: 100%;
}

.wounds-column,
.wounds-header {
  width: 40px;
  text-align: center;
}
.wounds-btn {
  width: 28px;
}

.bm-column,
.bm-header {
  width: 50px;
  text-align: center;
}
.bm-btn {
  width: 38px;
}
.wounds-row label {
  margin-right: 5px;
}
.bonus-row label {
  margin-right: 5px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.small-input {
  width: auto;
  max-width: 40%;
}

.quick-select {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.quick-item {
  display: flex;
  align-items: center;
  gap: 2px;
}

.state-legend {
  margin-top: 20px;
  font-size: 0.9em;
}

.state-legend h3 {
  cursor: pointer;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.legend-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px;
}

#quick-title {
  cursor: pointer;
}

.initiative-page {
  font-size: 15px;
}

.hide-header .initiative-header {
  display: none;
}

@keyframes swipe-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes swipe-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-100%); opacity: 0; }
}

.content.swipe-in {
  animation: swipe-in 0.2s forwards;
  will-change: transform, opacity;
}

.content.swipe-out {
  animation: swipe-out 0.2s forwards;
  will-change: transform, opacity;
}

@keyframes tile-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.tile-grid .tile.zoom {
  animation: tile-zoom 0.2s forwards;
  will-change: transform;
}

@keyframes page-zoom-in {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.content.zoom-in {
  animation: page-zoom-in 0.2s forwards;
  will-change: transform, opacity;
}

/* Spinner Overlay */
#spinner {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
#spinner.show {
  display: flex;
}
.loader {
  width: 40px;
  height: 40px;
  border: 4px solid #bbb;
  border-top-color: #1f2d3d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Spinner while loading database.xml */
#db-load-spinner {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 2100;
}
body.loading-db #db-load-spinner {
  display: flex;
}
.db-loader {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top-color: #1f2d3d;
  border-radius: 50%;
  animation: db-spin 1s linear infinite;
}
@keyframes db-spin {
  to { transform: rotate(360deg); }
}
