* { box-sizing: border-box; font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
body { margin: 0; background: #f5f6f8; color: #1a1a1a; }

.auth-wrap { max-width: 420px; margin: 60px auto; text-align: center; }
.auth-logo { height: 48px; margin-bottom: 20px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; justify-content: center; }
.tab { padding: 8px 20px; border: none; border-radius: 8px; background: #e5e7eb; cursor: pointer; }
.tab.active { background: #111827; color: #fff; }
.card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.08); text-align: left; margin-bottom: 20px; }
.hidden { display: none; }
label { display: block; margin: 10px 0 4px; font-size: 13px; color: #444; }
input, select { width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; }
button { cursor: pointer; }
form button[type=submit], #verifyBtn, #downloadPdfBtn { background: #111827; color: #fff; border: none; padding: 10px 16px; border-radius: 8px; margin-top: 14px; font-weight: 600; }
.error { color: #b91c1c; font-size: 13px; min-height: 16px; }

.topbar { display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.topbar-logo { height: 32px; }
.topbar #welcomeMsg { flex: 1; }
#logoutBtn { background: #e5e7eb; border: none; padding: 8px 14px; border-radius: 6px; }

.dash { max-width: 1100px; margin: 20px auto; padding: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: end; }
.verify-btn-wrap { display: flex; }
#verifyBtn { width: 100%; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-weight: normal; font-size: 14px; }
.checkbox-row input { width: auto; }

.summary-header { display: flex; justify-content: space-between; align-items: center; }
.category-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.stat-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; }
.stat-label { color: #2563eb; font-size: 13px; font-weight: 600; }
.stat-value { font-size: 18px; font-weight: 700; margin-top: 4px; }

.filters { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.filters select, .filters input { width: auto; min-width: 160px; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { border-bottom: 1px solid #eee; padding: 8px 10px; font-size: 13px; text-align: left; vertical-align: top; }
th { background: #f3f4f6; }
.result-Yes { color: #16a34a; font-weight: 700; }
.result-Few { color: #b45309; font-weight: 700; }
.result-No { color: #dc2626; font-weight: 700; }

.rec-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.rec-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.badge { padding: 2px 10px; border-radius: 999px; font-size: 12px; color: #fff; background: #6b7280; }
.badge.high { background: #dc2626; }
.badge.medium { background: #d97706; }
.badge.low { background: #16a34a; }
.rec-category { color: #6b7280; font-size: 12px; }
.dropdown-select { position: relative; }
.dropdown-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  text-align: left;
}
.dropdown-toggle:hover { border-color: #9ca3af; }
.dropdown-arrow { color: #6b7280; font-size: 12px; margin-left: 8px; }

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  z-index: 20;
  padding: 6px 0;
}
.dropdown-panel.open { display: block; }

.dropdown-panel .checkbox-row {
  padding: 8px 12px;
  margin: 0;
}
.dropdown-panel .checkbox-row:hover { background: #f3f4f6; }
