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

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

nav {
  background: white;
  padding: 20px 40px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav h1 {
  color: #333;
  font-size: 28px;
  margin: 0;
}

.btn {
  background: #007bff;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #0056b3;
}

.layout {
  display: flex;
  height: calc(100vh - 80px);
}

.main-content {
  flex: 0 0 75%;
  padding: 40px;
  overflow-y: auto;
  background: white;
}

.sidebar {
  flex: 0 0 25%;
  padding: 30px 20px;
  background: #f8f9fa;
  border-left: 1px solid #ddd;
  overflow-y: auto;
}

.sidebar h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
}

.stat-item {
  background: white;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  color: #666;
  font-weight: bold;
}

.stat-value {
  color: #007bff;
  font-size: 24px;
  font-weight: bold;
}

.question-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.question-box {
  background: white;
  border: 2px solid #007bff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-weight: bold;
  color: #007bff;
  cursor: pointer;
  transition: all 0.2s;
}

.question-box:hover {
  background: #007bff;
  color: white;
}

.question-box.active {
  background: #28a745;
  border-color: #28a745;
  color: white;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.btn-add {
  background: #28a745;
  margin-top: 10px;
  margin-right: 10px;
}

.btn-add:hover {
  background: #218838;
}

.btn-save {
  background: #ffc107;
  margin-top: 10px;
}

.btn-save:hover {
  background: #e0a800;
}

.btn-view {
  background: #17a2b8;
  padding: 8px 16px;
  font-size: 14px;
  margin-right: 5px;
}

.btn-view:hover {
  background: #138496;
}

.btn-crossword {
  background: #6f42c1;
  padding: 8px 16px;
  font-size: 14px;
  margin-right: 5px;
}

.btn-crossword:hover {
  background: #5a32a3;
}

.btn-delete {
  background: #dc3545;
  padding: 8px 16px;
  font-size: 14px;
}

.btn-delete:hover {
  background: #c82333;
}

.btn-edit {
  background: #ffc107;
  padding: 8px 16px;
  font-size: 14px;
}

.btn-edit:hover {
  background: #e0a800;
}

.btn-create {
  background: #28a745;
}

.btn-create:hover {
  background: #218838;
}

.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.header-section h2 {
  margin: 0;
}

.table-section {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid #e0e0e0;
}

.table-section:last-child {
  border-bottom: none;
}

.table-section h3 {
  color: #333;
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #007bff;
  display: inline-block;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#answersList {
  max-height: calc(100vh - 300px);
  overflow-y: auto;
}
