/* Tampilan Sederhana dan Ringan */
:root {
  --primary: #0056b3;
  --primary-hover: #004494;
  --secondary: #28a745;
  --background: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --border: #dddddd;
  --danger: #dc3545;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  padding-bottom: 50px;
}

header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
}

header h1 {
  font-size: 1.5rem;
  color: var(--primary);
}

nav a {
  color: var(--primary);
  text-decoration: none;
  margin-left: 15px;
  font-weight: bold;
}

nav a:hover, nav a.active {
  text-decoration: underline;
}

main {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.card {
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  background-color: #fff;
}

.btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-danger {
  background-color: var(--danger);
}

.btn-danger:hover {
  background-color: #c82333;
}

/* Form Styles */
.form-group {
  margin-bottom: 15px;
}

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

.form-control {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
}

/* Practice Area */
.practice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.timer {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--danger);
}

.question-text {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.question-text img, .ql-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.option-card {
  border: 1px solid var(--border);
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
}

.option-card:hover {
  background-color: #e9ecef;
}

.option-card.selected {
  background-color: #cce5ff;
  border-color: #b8daff;
}

.option-letter {
  font-weight: bold;
  margin-right: 10px;
}

.controls {
  display: flex;
  justify-content: space-between;
}

/* Admin Table */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  text-align: left;
  border: 1px solid var(--border);
}

th {
  background-color: #f8f9fa;
  font-weight: bold;
}

.action-btns {
  display: flex;
  gap: 5px;
}

.action-btns button {
  padding: 5px 10px;
  font-size: 0.9rem;
}

/* Loading Overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#loading-overlay:not(.active) {
  display: none;
}

.hidden {
  display: none !important;
}

.result-card {
  text-align: center;
}

.score-display {
  font-size: 3rem;
  font-weight: bold;
  color: var(--secondary);
  margin: 20px 0;
}
