:root {
  --bg: #f8f8f5;           /* háttér törtfehér */
  --card: #fefefe;          /* fehér elemek halványszürkére */
  --text: #222222;          /* sötétszürke-fekete szöveg */
  --muted: #555555;         /* halványszürke szöveg */
  --accent: #5ab0ff;        /* marad az eredeti kék kiemelés */
  --border: #cccccc;        /* világosszürke keret */
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Garamond", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
}

.container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.title {
  text-align: center;
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
}

.form label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 600;
}

.form input[type=text],
.form input[type=password],
textarea {
  width: 100%;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font-family: "Garamond", "Times New Roman", serif;
  font-size: 18px;
}

.form input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 176, 255, .15);
}

.btn {
  margin: 16px auto 0 auto;  /* felül 16px, vízszintesen auto → középre rakja */
  display: block;            /* blokkszintű elem → működik az auto margó */
  background: var(--accent);
  color: #071320;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-family: "Garamond", "Times New Roman", serif;
}


.btn:hover {
  filter: brightness(1.1);
}

.muted {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.alert.error {
  background: rgba(255,92,119,.12);
  border: 1px solid rgba(255,92,119,.35);
  color: #ffb0be;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: #fefefe; /* halványszürke topbar */
}

.brand {
  font-weight: 800;
}

.main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 24px;
}

label[for="query"] {
  display: block;
  text-align: center;
  margin-bottom: 1em; /* 1 sornyi hely alatta */
}

label[for="must_include"] {
  display: block;
  text-align: center;
  margin-bottom: 1em; /* 1 sornyi hely alatta */
}

h2 {
  text-align: center;
}
/* === Jogterület-választó gombok === */
.category-toggle {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.toggle-btn {
  background-color: #e0e0e0;
  border: 1px solid #cccccc;
  color: #222222;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-family: "Garamond", "Times New Roman", serif;
  transition: all 0.2s ease-in-out;
}

.toggle-btn:hover {
  background-color: #d0d0d0;
}

.toggle-btn.active {
  background-color: #5ab0ff;
  color: #ffffff;
  border-color: #5ab0ff;
}

.result {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.result .meta {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.result .tag {
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 6px;
}

.result .text {
  white-space: pre-wrap;
  line-height: 1.6;
  color: var(--text);
}

.thumbsUp {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
/* --- Jogterületi toggle gombok új stílusa (zöld–szürke állapot) --- */
.toggle-btn {
  background-color: #ccc;   /* szürke, ha inaktív */
  color: black;
  border: 1px solid #888;
  border-radius: 6px;
  padding: 6px 12px;
  margin: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.toggle-btn.active {
  background-color: #5ab0ff;  /* zöld, ha aktív */
  color: white;
  border-color: #27ae60;
}
