:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
}

body {
  background-color: var(--bg);
  font-family: 'Cairo', sans-serif;
  color: var(--text);
  margin: 0;
  padding: 20px;
  direction: rtl;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

header {
  text-align: center;
  margin-bottom: 30px;
}

h2 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--text);
}

p {
  color: var(--text-light);
  margin-top: 8px;
}

.guide-box {
  background: #eff6ff;
  border-right: 4px solid var(--primary);
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1e40af;
  line-height: 1.6;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

input, textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  font-family: 'Cairo';
  font-size: 1.05rem;
  box-sizing: border-box;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.8;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Cairo';
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.2s;
  margin-bottom: 10px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  width: 100%;
  padding: 14px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Cairo';
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--text);
}

.output-section {
  background: #f1f5f9;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 25px;
}

.hidden {
  display: none;
}

.screen {
  margin-top: 20px;
}

.preview-box {
  background: #fff;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 140px;
  line-height: 2;
  font-size: 1.25rem;
  white-space: pre-wrap;
}

.highlight {
  background: #fde68a;
  cursor: pointer;
  border-radius: 6px;
  padding: 0 3px;
}

.blank-input {
  width: 130px;
  border: none;
  border-bottom: 2px solid #333;
  border-radius: 0;
  font-size: 1.1rem;
  text-align: center;
  padding: 4px 8px;
  margin: 0 4px;
  background: transparent;
  transition: border-color 0.3s, color 0.3s;
}

.bank {
  margin-top: 18px;
  line-height: 2;
}

.bank-word {
  display: inline-block;
  padding: 6px 10px;
  margin: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.score {
  margin-top: 15px;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
}

.student-preview-card {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.options-group-box {
  background: #fff;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.options-group-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text);
}