/* Basic styling for the Legal & Policy Scanner */
/* Global typography and layout */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f9fb;
  color: #355662;
}

header {
  background-color: #355662;
  color: #ffffff;
  padding: 1rem 2rem;
}

header h1 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
}

header p {
  margin: 0.25rem 0 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

main {
  padding: 1.5rem 2rem;
}

/* Search section styling */
#searchSection {
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

#searchSection form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: end;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.checkbox-row {
  align-items: center;
  flex-direction: row;
  gap: 0.5rem;
}

.submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

label {
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  color: #355662;
  font-weight: 600;
}

input[type="text"],
input[type="date"],
select {
  padding: 0.45rem 0.5rem;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #355662;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
  outline: none;
  border-color: #F79722;
  box-shadow: 0 0 0 2px rgba(247, 151, 34, 0.2);
}

button {
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 4px;
  background-color: #F79722;
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #e6861f;
}

.status {
  font-size: 0.85rem;
  color: #21759B;
}

/* Results table */
#results table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border: 1px solid #d3d3d3;
  border-radius: 6px;
  overflow: hidden;
}

#results th,
#results td {
  padding: 0.6rem;
  border-bottom: 1px solid #f1f1f1;
  font-size: 0.85rem;
  color: #355662;
}

#results th {
  background-color: #355662;
  color: #ffffff;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

#results tr:nth-child(even) {
  background-color: #f9fbfc;
}

#results tr:hover {
  background-color: #f0f7f9;
}

#results td a {
  color: #21759B;
  text-decoration: none;
}

#results td a:hover {
  text-decoration: underline;
}