body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

h1 { 
  margin-bottom: .5rem; 
}

.content-container {
    text-align: center;
    padding: 20px;
	padding-top: 10px;
    max-width: 900px;
    margin: auto;
}

.content-narrow {
	text-align: center;
	max-width: 720px;
	margin: 0 auto;
	padding: 20px;
}

.content-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.content-container p, 
.content-container ul, 
.content-container ol {
    text-align: left;
    margin: 20px auto;
    max-width: 800px;
}

.page-title {
	text-align: center;
    margin-bottom: 1rem;
	margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Section spacing */
.section {
    margin-top: 20px;
}

/* Remove excessive gaps around text */
.section p {
    margin: 0;
}

/* Tighter spacing for lists */
.section ul {
    margin: 5px 0 10px 20px;
    padding: 0;
}

/* Make small links look subtle */
a.small {
    font-size: smaller;
    color: #0073e6;
    text-decoration: none;
}
a.small:hover {
    text-decoration: underline;
}

#submit-btn {
  margin-top: 18px;
  padding: 6px 12px;      /* smaller button */
  font-size: 0.85rem;     /* smaller text */
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 200px) {
  #submit-btn {
    font-size: 0.9rem;
    padding: 0.6em 1.2em;
    width: 100%;    /* make it full-width on mobile */
  }
}

label { 
  display: block; 
  margin-top: 14px; 
  font-weight: 600; 
}

input, select, textarea { 
  width: 100%; 
  padding: 8px; 
  margin-top: 4px; 
  border: 1px solid #d1d5db; 
  border-radius: 8px; 
}

button { 
  margin-top: 16px; 
  padding: 6px 12px; 
  font-size: 0.85rem;
  border: 0; 
  border-radius: 10px; 
  background: #2563eb; 
  color: white; 
  font-weight: 600; 
  cursor: pointer; 
}

button:hover {
  background:#1e4fc9; /* darker blue hover */
}

button:disabled {
  opacity: .6; 
  cursor: not-allowed;
}


/* Hidden utility */
.hidden { display:none; }

/* Checkbox grid */
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;     /* allow wrapping into multiple rows */
  gap: 0.5rem 1.5rem;  /* row gap, column gap */
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  white-space: nowrap;
}

/* Utility classes */
.row { 
  display: flex; 
  gap: 12px; 
}
.row > div { 
  flex: 1; 
}

.hint { 
  color: #6b7280; 
  font-size: .9rem; 
}

.note { 
  background: #f8fafc; 
  padding: 12px; 
  border-radius: 10px; 
  margin-bottom: 16px; 
  border: 1px dashed #e5e7eb;
}

input[type="file"]::file-selector-button {
  padding: 4px 8px;   /* control button size */
  font-size: 0.75rem;  /* smaller font */
  border: 0;
  border-radius: 6px;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

.binning-title {
  text-align: center;
  margin-bottom: 20px;
}
/* Restore Bootstrap close icon and disable hover color change */
.alert .btn-close {
  opacity: 1 !important;               /* always visible */
  background-color: transparent !important;
  background-image: var(--bs-btn-close-bg) !important; /* restore X icon */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1em;
  border: none;
}

.alert .btn-close:hover,
.alert .btn-close:focus,
.alert .btn-close:active {
  opacity: 1 !important;               /* don’t fade */
  background-color: transparent !important;
  background-image: var(--bs-btn-close-bg) !important; /* same X icon */
  box-shadow: none !important;
  outline: none !important;
}
