*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  background: #f5f5f5;
  color: #1a1a1a;
}

nav {
  background: #1a3a5c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
}
.brand { color: white; font-weight: 700; font-size: 17px; text-decoration: none; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14px; }
.nav-links a.active { color: white; font-weight: 600; }
.nav-links a:hover { color: white; }
.logout { color: rgba(255,255,255,0.5) !important; }

main { max-width: 900px; margin: 0 auto; padding: 32px 20px; }

/* Login */
.login-wrap { max-width: 320px; margin: 80px auto; background: white; padding: 32px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.login-wrap h1 { margin-bottom: 20px; font-size: 22px; }
.login-wrap input { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; margin-bottom: 12px; }
.login-wrap button { width: 100%; padding: 10px; background: #1a3a5c; color: white; border: none; border-radius: 6px; font-size: 15px; cursor: pointer; }
.error { color: #c0392b; margin-bottom: 12px; font-size: 14px; }

/* Search */
.search-header { margin-bottom: 24px; }
.search-header h1 { font-size: 26px; margin-bottom: 4px; }
.subtitle { color: #666; font-size: 14px; }

.search-form { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 28px; }
.search-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.search-bar input { flex: 1; padding: 10px 14px; border: 1px solid #ccc; border-radius: 6px; font-size: 16px; }
.search-bar input:focus { outline: none; border-color: #1a3a5c; }
.search-bar button { padding: 10px 24px; background: #1a3a5c; color: white; border: none; border-radius: 6px; font-size: 15px; cursor: pointer; font-weight: 600; }
.search-bar button:hover { background: #2a5580; }

.filters { display: flex; gap: 24px; align-items: center; font-size: 14px; color: #555; }
.filters label { display: flex; align-items: center; gap: 6px; }
.filters input[type=number] { padding: 4px 8px; border: 1px solid #ccc; border-radius: 4px; }
.filters select { padding: 4px 8px; border: 1px solid #ccc; border-radius: 4px; }

.result-count { color: #555; margin-bottom: 20px; font-size: 14px; }
.result-count strong { color: #1a1a1a; }
.no-results { color: #666; margin-top: 20px; }

.year-group { margin-bottom: 32px; }
.year-heading { font-size: 18px; font-weight: 700; color: #1a3a5c; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.count-badge { background: #e8f0f8; color: #1a3a5c; font-size: 13px; padding: 2px 9px; border-radius: 12px; font-weight: 600; }

.result-card { background: white; border-radius: 6px; padding: 14px 16px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.06); border-left: 3px solid #e0e0e0; }
.result-card:hover { border-left-color: #1a3a5c; }

.result-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.bill-number { font-weight: 700; font-size: 15px; color: #1a3a5c; }
.committee { color: #555; font-size: 13px; }
.date { color: #888; font-size: 13px; margin-left: auto; }

.badge { font-size: 11px; padding: 2px 7px; border-radius: 4px; font-weight: 600; }
.badge-pass { background: #d4edda; color: #155724; }
.badge-rs { background: #fff3cd; color: #856404; }

.bill-desc { font-size: 13px; color: #444; margin-bottom: 8px; line-height: 1.5; }

.result-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.presenter { color: #555; }
.pdf-link { color: #1a3a5c; text-decoration: none; font-weight: 500; }
.pdf-link:hover { text-decoration: underline; }

.empty-state { text-align: center; padding: 60px 0; color: #666; line-height: 2; }
.empty-state a { color: #1a3a5c; }
