:root {
  --bg: #121212;
  --text: #fff;
  --accent: #ff4081;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.2);
}
body.light {
  --bg: #f5f5f5;
  --text: #000;
  --accent: #6200ea;
  --card: #fff;
  --border: #ccc;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  transition: 0.3s ease all;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.controls {
  padding: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filters label {
  margin-right: 1rem;
}

#questionContainer {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.question-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 10px;
  position: relative;
}

.question-card h3 {
  margin-top: 0;
}

.actions {
  padding: 1rem;
  text-align: center;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  margin: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  opacity: 0.9;
}

.favorite {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.2rem;
  cursor: pointer;
}
