:root {
  --bg-light: #fef9f3;
  --text-light: #2e2e2e;
  --bg-dark: #1e1e2f;
  --text-dark: #fefefe;
  --accent: #ff8c42;
}

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

body.dark {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

header, footer {
  background-color: var(--accent);
  color: white;
  padding: 1rem;
  text-align: center;
}

.controls, .actions, .vote {
  text-align: center;
  margin: 1rem 0;
}

button {
  padding: 10px 15px;
  border: none;
  margin: 5px;
  border-radius: 6px;
  background-color: #8b5cf6;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  background-color: #6d28d9;
}

select {
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#ideaBox {
  margin: 1rem auto;
  padding: 1.5rem;
  width: 70%;
  text-align: center;
  font-size: 1.3rem;
  background: #fff9db;
  border-radius: 10px;
  border-left: 8px solid #ffd93d;
  box-shadow: 2px 2px 12px rgba(0,0,0,0.1);
}

body.dark #ideaBox {
  background: #2a2a4a;
  border-left-color: #ff8c42;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: #fff;
  color: #333;
  padding: 2rem;
  border-radius: 10px;
  width: 80%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

body.dark .modal-content {
  background-color: #1e1e2f;
  color: white;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

.animated-box {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
