/* Basic Reset & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  background-color: #0b1220;
  color: #e6f0ff; /* was #22304a */
}

/* Custom Full-Width Container to Override Theme Restrictions */
.my-app-container {
  width: 100% !important;
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 1rem;
  overflow-x: hidden;
}

/* Override Default Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Tool Header (On-Screen) - Modern look without a black background */
.tool-header {
  background-color: #0b1220;
  color: #e6f0ff;
  padding: 1rem 0;
  text-align: center;
  border-bottom: 1px solid #22304a;
}
.tool-title {
  font-size: 2rem;
  margin: 0;
}

/* Footer */
.footer {
  background-color: #0b1220;
  color: #e6f0ff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  border-top: 1px solid #22304a;
}

/* Page Heading */
.page-heading {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

/* Set Search Input */
.set-search {
  text-align: center;
  margin-bottom: 1rem;
}
.set-search input {
  padding: 0.5rem;
  width: 80%;
  max-width: 400px;
  border: 1px solid #2c3a55; /* was #ccc */
  border-radius: 4px;
  text-align: center;
  background: #0f1b2d;       /* add for dark field */
  color: #e6f0ff;            /* add for contrast */
}

/* Form Styling */
.set-form {
  background-color: #0b1220;
  border: 1px solid #22304a;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin: 0 auto;
}
fieldset {
  border: none;
  margin-bottom: 1rem;
  text-align: center;
}
legend {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Checkbox List: Two Columns, Responsive */
.checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  background-color: #0b1220;
  border: 1px solid #22304a; /* was #ddd */
  padding: 0.5rem;
  margin: 0 auto;
  width: 100%;
}
.checkbox-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid #2c3a55; /* was #ccc */
  border-radius: 4px;
  padding: 0.5rem;
  margin: 0.25rem 0;
  background-color: #0b1220;
}
.checkbox-item input[type="checkbox"] {
  margin-right: 0.5rem;
}
.checkbox-item label {
  white-space: normal;
  word-break: break-word;
}

/* Responsive: One Column on Small Screens */
@media screen and (max-width: 600px) {
  .checkbox-list {
    grid-template-columns: 1fr;
  }
}

/* Input Groups */
.input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}
.input-group label {
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.input-group input[type="text"] {
  width: 80%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #2c3a55; /* was #ccc */
  border-radius: 4px;
  text-align: center;
  background: #0f1b2d;       /* add for dark field */
  color: #e6f0ff;            /* add for contrast */
}

/* Button Styles */
.set-form button {
  background-color: #3b82f6; /* was #ff5757 */
  border: none;
  color: #fff;
  padding: 0.5rem 0.8rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s, box-shadow .2s;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.set-form button:hover {
  background-color: #2563eb; /* was #e05252 */
  box-shadow: 0 0 16px rgba(59,130,246,.35);
}

/* Progress Section */
.progress-section {
  text-align: center;
  margin-top: 1rem;
}
#progressMessage {
  font-style: italic;
  color: #9fb0cc; /* was #555 */
  text-align: center;
}

/* Results Header with Print Button on the Same Line */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.results-header h3 {
  margin: 0;
}

/* Results Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #0f1b2d; /* was #fff */
  color: #e6f0ff;
}
thead {
  background-color: #13233d; /* was #eee */
}
th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #22304a; /* was #ddd */
}
th {
  font-weight: 600;
  white-space: nowrap;
}
tr:hover {
  background-color: #10213c; /* was #f5f5f5 */
}

/* Print Styles: Hide non-essential elements */
@media print {
  .tool-header,
  .page-heading,
  .set-search,
  .set-form,
  .progress-section,
  .results-header button,
  .no-print,
  .tool-header {
    display: none !important;
  }
  .results {
    margin-top: 0;
  }
}
.print-header {
  display: none; /* Hide on screen */
}

@media print {
  .print-header {
    display: block;
    text-align: center;
    margin-bottom: 20px;
  }
  .print-logo {
    display: block;
    margin: 0 auto;
    max-width: 150px;
  }
}
