:root {
  --primary-blue: #2563eb;
  --bg-slate: #f8fafc;
}
body {
  background-color: var(--bg-slate);
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  padding-bottom: 60px;
}
.navbar {
  background: var(--primary-blue);
  border-bottom: none;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar-brand,
.nav-link {
  color: white !important;
}
.nav-link {
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-link:hover {
  opacity: 1;
}
.navbar-toggler {
  filter: brightness(0) invert(1);
  border-color: rgba(255, 255, 255, 0.5);
}
.tool-card {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  height: 100%;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-blue);
}
.icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}
.result-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.result-item:hover {
  border-color: #cbd5e1;
}
.badge-hot {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #ffedd5;
  font-size: 0.7rem;
  font-weight: 800;
}
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: white;
  border-top: 1px solid #e2e8f0;
  padding: 10px;
  font-size: 0.65rem;
  text-align: center;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1000;
}
.view-section {
  display: none;
}
.view-section.active {
  display: block;
}
.info-panel {
  background: #f1f5f9;
  border-left: 4px solid var(--primary-blue);
}
/* Custom Switch Styling */
.layout-switch-container {
  display: inline-flex;
  align-items: center;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.fw-black {
  font-weight: 900;
}

/* Range markers styling */
.range-markers {
  display: flex;
  justify-content: space-between;
  padding: 0 5px;
  margin-top: -5px;
}
.range-markers span {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: bold;
}
.x-small {
  font-size: 0.6rem;
}
/* --- RESPONSIVE TABLE STYLING --- */
.table-responsive {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  margin-bottom: 0;
  min-width: 500px; /* Ensures table doesn't collapse too much */
}
@media (max-width: 576px) {
  .table {
    min-width: 100%; /* Allow smaller width on mobile but rely on scrolling if headers are long */
  }
  .table thead th {
    font-size: 0.65rem !important;
    padding: 0.5rem !important;
  }
  .table tbody td {
    font-size: 0.7rem !important;
    padding: 0.5rem !important;
  }
  .copy-btn,
  .badge {
    font-size: 0.55rem !important;
    padding: 2px 6px !important;
  }
}
.table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}
.table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  word-wrap: break-word;
  max-width: 300px; /* Prevents long statements from breaking layout */
}
.col-action {
  width: 80px;
  text-align: right;
}


.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection
 {
    box-shadow: none !important;
}
