body {
  font-size: 0.875rem;
}

.bootstrap-select .dropdown-toggle {
  font-size: 0.85rem;
  padding: 4px 10px;
  height: auto;
  min-height: 36px;
  line-height: 1.5;
}


form {
  font-size: 0.85rem;
  padding: 1rem;
}

form .form-label {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

form .form-control {
  font-size: 0.85rem;
  padding: 4px 8px;
}

.row {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.btn {
  padding: 4px 8px;
  font-size: 0.85rem;
  margin: 0.25rem 0;
}

.scira-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px; /* In case modal is taller than screen */
  box-sizing: border-box;
}


.scira-modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 12px;
  width: 80%;
  max-height: 80%;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.scira-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.scira-result {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
}

.scira-result a {
  font-weight: bold;
  color: #007BFF;
  text-decoration: none;
}

.scira-result a:hover {
  text-decoration: underline;
}


body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

h1, h2, h3 {
  color: #2c3e50;
}

.input-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 10px;
}

.input-label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #34495e;
}

.input-field {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 200px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#content {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.graph-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.item {
  background: #ffffff;
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

.item:hover {
  transform: translateY(-4px);
}

.item canvas {
  margin-top: 10px;
  max-width: 100%;
  height: auto;
}

.thirdchart {
  background: #ffffff;
  border-radius: 20px;
  max-width: 800px;
  margin: 30px auto;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.chart-container {
  max-width: 100%;
  margin: 20px auto;
}

#analytics {
  margin-top: 30px;
  text-align: left;
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.06);
}

#analytics h3,
#analytics p {
  margin: 10px 0;
  font-family: "Segoe UI", sans-serif;
  color: #34495e;
}

#analytics b {
  font-size: 1.2rem;
  color: #2c3e50;
}

.datadescription {
  padding: 0 18px;
  background-color: Transparent;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  }

@media screen and (max-width: 768px) {
  .graph-row {
    flex-direction: column;
    align-items: center;
  }
  .input-field {
    width: 100%;
  }
}

/* wrap text */
.bootstrap-select .dropdown-menu .dropdown-item {
  white-space: normal;
}

td,
th {
  border-right: none;
  border-left: none;
}

td {
  padding-left: 0.75rem !important;
}

::placeholder {
  color: silver !important;
}

tbody tr:last-child {
  pointer-events: none;
  animation: fadeIn 1s;
  will-change: opacity, transform, border-color;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
    border-color: transparent;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    border-color: inherit;
  }
}

tbody tr:last-child td {
  animation: pad 0.2s linear;
  will-change: padding;
}

@keyframes pad {
  from {
    padding: 0;
    height: 0;
  }
  to {
    padding: auto;
    height: auto;
  }
}
.scira-spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Modal container style (optional - just context) */
/* Modal Overlay */
.scira-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enables scroll on smaller screens */
  background-color: rgba(0, 0, 0, 0.5);
}

/* Modal Content */
.scira-modal-content {
  background-color: #fff;
  margin: 5vh auto; /* Use viewport units to allow top space */
  padding: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 10px;
  box-sizing: border-box;
  position: relative;
}

/* Scrollable results area */
#sciraResults {
  max-height: 60vh;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 10px;
}

/* Responsive text and layout tweaks */
@media screen and (max-width: 480px) {
  .scira-modal-content {
    padding: 15px;
    width: 95%;
    margin: 10vh auto;
  }
}

/* Optional: style the scrollbar */
#sciraResults::-webkit-scrollbar {
  width: 8px;
}

#sciraResults::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

#sciraResults::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.scira-icon-btn {
  background: transparent;
  border: none;
  font-size: 18px; /* Adjust size as needed */
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.scira-icon-btn:hover {
  opacity: 0.7; /* Optional hover effect */
}
