body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f2f5;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 800px;
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.navbar button {
  margin-left: 10px;
}

button {
  background: #4361ee;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
button:hover { background: #3a56d4; }
button:active { transform: scale(0.98); }

input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.polls-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.poll-card {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  flex: 1 1 200px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid #dee2e6;
}
.poll-card:hover { background: #e9ecef; }

.option-btn {
  display: block;
  width: 100%;
  margin: 10px 0;
  background: #e9ecef;
  color: #333;
  text-align: left;
}
.option-btn:hover { background: #4361ee; color: white; }

#resultsArea ul {
  list-style: none;
  padding: 0;
}
#resultsArea li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.user-list {
  list-style: none;
  padding: 0;
}
.user-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.poll-admin-card {
  background: #f1f3f5;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.success { color: green; }
.error { color: red; }

.auth-container {
  max-width: 400px;
  margin-top: 80px;
}

/* Строка с полем варианта и кнопкой удаления */
.option-row {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
  align-items: center;
}
.option-row input {
  flex: 1;
}
.remove-option-btn {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
}
.remove-option-btn:hover {
  background: #c82333;
}

/* Подсветка невалидных полей */
.optionInput.invalid {
  border-color: red;
}

/* Модальные окна */
.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}
.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.success { color: green; }
.error { color: red; }