/* 🌐 Font Setup */
body {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  background-color: #fefefe;
  line-height: 1.65;
}

select,
input,
textarea {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14.5px;
}

button {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 5px;
}

button:hover {
  background-color: #0056b3;
}

/* ✅ Container */
.container {
  width: 90%;
  margin: auto;
  padding: 20px;
  max-width: 1200px;
}

/* ✅ Forms */
.form-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.form-container input,
.form-container select,
.form-container button {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* ✅ Collapsible Sections */
.info-box {
  background: white;
  padding: 15px;
  min-height: 20px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  display: none; /* Initially Hidden */
}

/* ✅ Tables */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  border: 1px solid #ccc;
  padding: 10px;
}

.info-table th {
  background-color: #f4f4f4;
  text-align: left;
}

/* ✅ Toggle Button Style */
.toggle-section {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 16px;
  padding: 10px 12px;
  margin-bottom: 5px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.toggle-section:hover {
  background-color: #0056b3;
}

/* ✅ Two Column Layout */
.two-column {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.two-column .column {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ✅ Nested Tables */
.nested-table {
  width: 100%;
  border-collapse: collapse;
}

.nested-table th,
.nested-table td {
  border: 1px solid #ccc;
  padding: 5px;
  text-align: left;
}

/* ✅ Tooltip */
.tooltip-icon {
  color: #666;
  font-size: 10px;         /* smaller font */
  vertical-align: super;   /* visually moves it like superscript */
  margin-left: 4px;
  cursor: help;
  display: inline-block;
  font-weight: bold;
}

.reply-list {
  margin-left: 20px;
  padding-left: 15px;
  border-left: 2px solid #ccc;
  color: #555;
  font-style: italic;
}


/* ✅ Dot Animation */
.loading-dots::after {
  display: inline-block;
  animation: dots 1.2s steps(3, end) infinite;
  content: '';
}

@keyframes dots {
  0%   { content: ''; }
  33%  { content: '.'; }
  66%  { content: '..'; }
  100% { content: '...'; }
}

/* ✅ Helper Text */
.helper-text {
  font-style: italic;
  color: #007b00;
  margin-bottom: 10px;
}
.helper-text:empty {
  display: none;
}

.governance-wrapper {
  margin-top: 30px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.governance-wrapper .toggle-section {
  max-width: 700px;
}

.governance-wrapper .info-box {
  width: 100%;
  max-width: 800px;
}

.dot-circle {
  display: inline-block;
  border: 1.5px solid #888;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 6px;
}
.custom-tip-box {
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  max-width: 400px;
  font-size: 14px;
  position: absolute;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.custom-tip-trigger {
  position: relative;
  display: inline-block;
}

.tooltip-super {
  position: relative;
  cursor: help;
  display: inline-block;
  font-weight: bold;
  font-size: 12px;
  vertical-align: super;
  margin-left: 4px;
  color: #007bff;
}

.tooltip-super:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 280px;
  background-color: #333;
  color: #fff;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  position: absolute;
  z-index: 9999;
  bottom: 125%;
  left: 50%;
  margin-left: -140px;
  font-size: 13px;
  line-height: 1.4;
  transition: opacity 0.3s;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 20px;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tooltip-icon .custom-tooltip {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  font-size: 13px;
  text-align: left;
  border-radius: 5px;
  padding: 8px 10px;
  position: absolute;
  z-index: 999;
  bottom: 125%; /* show above the dots */
  left: 0;
  width: 280px;
  white-space: normal;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toggle-section {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 5px;
  gap: 6px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.toggle-section:hover {
  background-color: #0056b3;
}

.toggle-section .triangle {
  display: inline-block;
  transition: transform 0.2s ease;
}

.toggle-section.open .triangle {
  transform: rotate(90deg); /* ▶ becomes ▼ */
}


/* ✅ Responsive Design */
@media screen and (max-width: 768px) {
  .form-container {
    flex-direction: column;
  }

  .data-sources {
    flex-wrap: wrap;
    justify-content: center;
  }

  .two-column {
    flex-direction: column;
  }

  button {
    width: 100%;
    text-align: center;
  }
}

.spinner-border {
  border: 0.15em solid #f3f3f3;
  border-top: 0.15em solid #007bff;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.d-none {
  display: none !important;
}

.loading-dots::after {
  content: '';
  display: inline-block;
  animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
  0%   { content: ''; }
  33%  { content: '.'; }
  66%  { content: '..'; }
  100% { content: '...'; }
}
