* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

h1 {
  color: #2c3e50;
  font-size: 28px;
}

h2 {
  color: #34495e;
  margin-bottom: 20px;
  font-size: 22px;
}

h3 {
  color: #34495e;
  margin-bottom: 15px;
  font-size: 18px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.tab {
  padding: 12px 24px;
  border: none;
  background: #ecf0f1;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: all 0.3s;
}

.tab.active {
  background: #3498db;
  color: white;
}

.tab:hover:not(.active) {
  background: #d5dbdb;
}

.tab-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  background: #3498db;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: #2980b9;
}

.btn-success {
  background: #27ae60;
}

.btn-success:hover {
  background: #229954;
}

.btn-secondary {
  background: #95a5a6;
}

.btn-secondary:hover {
  background: #7f8c8d;
}

.btn-danger {
  background: #e74c3c;
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.bank-card {
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.bank-card:hover {
  border-color: #3498db;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.bank-card h3 {
  margin-bottom: 10px;
}

.bank-card p {
  color: #7f8c8d;
  font-size: 14px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #ecf0f1;
  border-radius: 4px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: #3498db;
  transition: width 0.3s;
}

.question {
  margin-bottom: 30px;
}

.question h3 {
  margin-bottom: 20px;
}

.question-number {
  color: #3498db;
  font-size: 14px;
  margin-bottom: 10px;
}

.option {
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.option:hover {
  background: #f8f9fa;
}

.option.selected {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

.option.correct {
  background: #27ae60;
  color: white;
  border-color: #27ae60;
}

.option.incorrect {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.nav-buttons {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.result-summary {
  text-align: center;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 30px;
}

.result-score {
  font-size: 48px;
  color: #27ae60;
  font-weight: bold;
  margin: 20px 0;
}

.result-details {
  margin-top: 30px;
}

.result-item {
  padding: 15px;
  border-left: 4px solid #e0e0e0;
  margin-bottom: 15px;
}

.result-item.correct {
  border-left-color: #27ae60;
}

.result-item.incorrect {
  border-left-color: #e74c3c;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.admin-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.record-item {
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  margin-bottom: 10px;
}

.record-item strong {
  color: #2c3e50;
}

#message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  display: none;
}

#message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

#message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

.footer {
  margin-top: 30px;
  text-align: center;
}

#answer-checkboxes {
  display: flex;
  gap: 15px;
}

#answer-checkboxes label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .header {
    flex-direction: column;
    gap: 15px;
  }
  
  .tab-content,
  .section,
  .admin-section {
    padding: 20px;
  }
}
