/* ========== Base ========== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

main { padding: 1em; }

textarea {
  width: 60%;
  height: 120px;
  margin-bottom: 1em;
}

button {
  padding: 8px 16px;
  cursor: pointer;
}

/* ========== Header / Nav ========== */
header {
  background-color: #333;
  color: #fff;
  padding: 1em;
  position: relative;
}

header h1 {
  margin: 0;
  display: inline-block;
}

nav {
  display: inline-block;
  margin-left: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 15px;
  font-weight: bold;
}

.user-info {
  position: absolute;
  top: 1em;
  right: 1em;
}

.user-info a {
  color: #fff;
  text-decoration: none;
  margin-left: 10px;
  font-weight: bold;
}

/* ========== Category Type (bigger + bolder) ========== */
label[for="categoryType"] {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

#categoryType {
  font-size: 18px;         /* bigger text */
  font-weight: 700;        /* bolder */
  padding: 8px 14px;       /* larger box */
  border-radius: 10px;
  border: 2px solid #ffffff33;
  background: #1f2742;     /* dark dropdown */
  color: #fff;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

#categoryType:focus {
  border-color: #6ea8fe;
  box-shadow: 0 0 0 3px rgba(110,168,254,0.25);
}

/* Make opened dropdown items readable */
#categoryType option {
  font-size: 18px;
  color: #fff;             /* visible text */
  background: #1f2742;     /* dark bg to match */
}

/* ========== Feedback ========== */
#errorMsg { color: red; font-weight: bold; }
#results  { margin-top: 1em; }

/* ========== Tables ========== */
table {
  border-collapse: collapse;
  width: 100%;
  max-width: 900px;
  margin: 1em 0;
}

th, td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

th {
  background-color: #333;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
}

/* ========== Output 2 title badges (mode-aware) ========== */
.o2-title{
  display:inline-block;
  margin:0 0 8px;
  padding:.35rem .65rem;
  border-radius:.5rem;
  font-weight:800;
  letter-spacing:.3px;
}

.o2-title.is-alcohol{
  color:#fff;
  background:#198754;                /* green */
  box-shadow:0 0 0 2px #19875433 inset;
}

.o2-title.is-cng{
  color:#fff;
  background:#0d6efd;                /* blue */
  box-shadow:0 0 0 2px #0d6efd33 inset;
}

/* ========== Responsive tweaks ========== */
@media (max-width: 900px) {
  textarea { width: 100%; }
  #categoryType { width: 100%; }
}
