.p-loading {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 40px;
    border: 1px inset #000;
}

.big-checkbox {
    width: 25px;
    height: 25px;
}

.hidden {
    visibility: hidden;
}

.card-title {
    font-weight: bold;
    color: #4f4f4f !important; /* !important is needed to override the default color inherited from the dbc theme */

    --element-width: 40vw;
    width: 100%;
    font-size: 100%;
}

.card-subtitle {
    font-size: 2em;
    white-space: nowrap;
    color: #4f4f4f;
}

.card-header {
    background-color: transparent;
    width: 100%;
}

.align-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    border: 6px solid #29C0BD;
    border-radius: 5px;
    height: 150px;
}

.info-icon {
    margin-left: 10px;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

/* ===== Global callback error modal ===== */
.global-error-modal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.12);
}

.global-error-modal-header {
  background: linear-gradient(90deg, #1f2937 0%, #111827 100%);
  border-bottom: 0;
  padding: 0.9rem 1.1rem;
}

.global-error-modal-header .btn-close {
  /* Adjust close button color for dark background */
  filter: invert(1) grayscale(100%) brightness(200%);
}

.global-error-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.global-error-icon {
  font-size: 1.2rem;
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.35));
}

.global-error-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.global-error-modal-body {
  padding: 1.1rem 1.2rem 0.4rem 1.2rem;
  background: #ffffff;
}

.global-error-msg {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 0.98rem;
  line-height: 1.45;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(220, 53, 69, 0.25);
  box-shadow: 0 1px 0 rgba(220, 53, 69, 0.08);
}

.global-error-trace-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0.1rem 0 0.4rem 0;
}

.global-error-trace {
  background: #0b1020;
  color: #e5e7eb;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.35;
  max-height: 50vh;
  overflow-y: auto;
  white-space: pre-wrap;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.global-error-trace .traceback,
.global-error-trace code {
  color: #c7d2fe;
}

.modal-backdrop.show {
  backdrop-filter: blur(3px);
  opacity: 0.35;
}
