html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background-color: #f4f6f9;
}

.brand-icon {
  color: #4dabf7;
}

/* Dashboard tiles */
.db-tile,
.db-summary-card {
  border-radius: 1rem;
}

.db-tile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .db-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .db-tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.db-tile-list {
  display: contents;
}

.db-tile-grid > .db-summary-card,
.db-tile-list > .col {
  min-width: 0;
}

.db-tile-list > .col-12 {
  grid-column: 1 / -1;
  width: 100%;
}

.db-tile-heading {
  min-width: 0;
  margin-right: .5rem;
}

.db-tile {
  cursor: pointer;
  border: 1px solid #e3e6ea;
  transition: transform .12s ease, box-shadow .12s ease;
}

.db-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1) !important;
}

.db-tile-disabled {
  opacity: .6;
}

.db-size {
  font-size: 1.6rem;
  font-weight: 700;
}

/* Auth pages */
.auth-body {
  background: linear-gradient(135deg, #1c3d5a, #2b5876);
  min-height: 100vh;
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  background: #fff;
  border-radius: .75rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .2);
}

.login-icon {
  font-size: 2rem;
  color: #4dabf7;
}

/* Admin tables */
.admin-toolbar {
  gap: .5rem;
}

.status-dot {
  display: inline-block;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  margin-right: .35rem;
}

.status-dot.ok { background-color: #2f9e44; }
.status-dot.warning { background-color: #f08c00; }
.status-dot.error { background-color: #e03131; }
.status-dot.pending { background-color: #1c7ed6; }
.status-dot.disabled { background-color: #868e96; }

/* DB Summary card */
.db-summary-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1c2b4a, #2b3f6b);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, .2);
}

.db-summary-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  pointer-events: none;
}

.db-summary-blob-1 {
  width: 22rem;
  height: 22rem;
  top: -9rem;
  right: -6rem;
}

.db-summary-blob-2 {
  width: 16rem;
  height: 16rem;
  bottom: -8rem;
  right: 4rem;
  background: rgba(255, 255, 255, .04);
}

.db-summary-content {
  position: relative;
  padding: 1.5rem 1.75rem;
}

.db-summary-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.db-summary-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .6rem 0;
}

.db-summary-head {
  color: rgba(255, 255, 255, .65);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding-top: 0;
}

.db-summary-col-num {
  flex: 0 0 2rem;
}

.db-summary-col-name {
  flex: 1 1 auto;
  min-width: 0;
}

.db-summary-col-size {
  flex: 0 0 auto;
  text-align: right;
}

.db-summary-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .15);
  margin: 0;
}

.db-summary-avatar {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25);
  border-top-color: rgba(255, 255, 255, .85);
}

.db-summary-name {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-summary-value {
  flex: 0 0 auto;
  min-width: 4.5rem;
  text-align: center;
  background: rgba(0, 0, 0, .3);
  color: #fff;
  font-weight: 700;
  border-radius: .5rem;
  padding: .4rem .9rem;
}

.db-summary-total .db-summary-name {
  font-weight: 700;
}

.db-summary-total .db-summary-value {
  background: rgba(255, 255, 255, .18);
}

.db-summary-empty {
  color: rgba(255, 255, 255, .7);
  padding: .75rem 0;
}
