@font-face {
  font-family: Vazirmatn;
  src: url('https://cdnjs.cloudflare.com/ajax/libs/vazirmatn/33.003/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('https://cdnjs.cloudflare.com/ajax/libs/vazirmatn/33.003/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  overflow-x: hidden;
}

@keyframes gradient {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}

.container {
  padding-top: 30px;
  padding-bottom: 30px;
}

.card {
  border-radius: 15px;
  overflow: hidden;
  border: none;
}

.card-header {
  border-bottom: none;
  padding: 15px;
}

.card-body {
  padding: 25px;
}

.animated-btn {
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition: all 0.3s ease;
}

.animated-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.animated-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.animated-btn:hover:before {
  transform: translateX(100%);
}

/* Quiz options styling */
.quiz-options {
  margin-bottom: 20px;
}

.quiz-option {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.quiz-option:hover {
  background-color: #f0f0f0;
  border-color: #ddd;
}

.quiz-option input[type="radio"] {
  margin-left: 10px;
}

/* Listening section styling */
.listening-section {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border-right: 4px solid #007bff;
}

/* Progress bar */
.progress {
  height: 10px;
  border-radius: 5px;
  margin-top: 5px;
}

.progress-bar {
  background-color: #4e54c8;
}

/* Results page styling */
.result-card {
  background-color: #fff;
}

.result-summary {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 20px;
}

.score-circle {
  width: 150px;
  height: 150px;
  background: conic-gradient(
      #4e54c8 0% calc(var(--percentage) * 1%),
      #f1f1f1 calc(var(--percentage) * 1%) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  position: relative;
}

.score-circle .inner {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-circle .percentage {
  font-size: 2rem;
  font-weight: bold;
  color: #4e54c8;
}

/* Accordion styling */
.accordion-item {
  border: none;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.accordion-button {
  border-radius: 10px;
  padding: 15px 20px;
  font-weight: 500;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(78, 84, 200, 0.1);
  color: #4e54c8;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(78, 84, 200, 0.5);
}

.accordion-body {
  padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-body {
      padding: 15px;
  }
  
  .score-circle {
      width: 120px;
      height: 120px;
  }
  
  .score-circle .inner {
      width: 90px;
      height: 90px;
  }
  
  .score-circle .percentage {
      font-size: 1.5rem;
  }
}

/* Enhanced Results page styling */
.result-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.result-header {
  background-color: #4e54c8;
  color: white;
  text-align: center;
  padding: 20px;
}

.user-info {
  margin-bottom: 20px;
  text-align: center;
}

/* Level-specific classes */
.level-beginner {
  color: #dc3545;
  font-weight: bold;
}

.level-intermediate {
  color: #ffc107;
  font-weight: bold;
}

.level-advanced {
  color: #28a745;
  font-weight: bold;
}

.result-details-title {
  margin-bottom: 15px;
  font-weight: bold;
  color: #333;
  position: relative;
  padding-right: 15px;
}

.result-details-title:before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background-color: #4e54c8;
  border-radius: 2px;
}

.result-answer-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.result-answer-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.result-answer-label {
  font-weight: bold;
  color: #555;
}

.result-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.restart-btn {
  background-color: #4e54c8;
  border-color: #4e54c8;
  border-radius: 8px;
  padding: 12px 20px;
  transition: all 0.3s ease;
  color: white;
}

.restart-btn:hover {
  background-color: #3b41a0;
  border-color: #3b41a0;
  transform: translateY(-2px);
}

.export-btn {
  background-color: #28a745;
  border-color: #28a745;
  border-radius: 8px;
  padding: 12px 20px;
  transition: all 0.3s ease;
  color: white;
}

.export-btn:hover {
  background-color: #218838;
  border-color: #1e7e34;
  transform: translateY(-2px);
}

/* Enhanced score circle with shadow */
.score-circle {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.score-circle .inner {
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .result-actions {
      flex-direction: column;
      gap: 10px;
  }
  
  .restart-btn, .export-btn {
      width: 100%;
  }
}
/* Minimal styles for question cards */
.question-card {
  margin-bottom: 8px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  border: 1px solid #e9ecef;
}

.question-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  border-color: #ced4da;
}

.question-card .card-body {
  padding: 8px 12px;
}

.draggable-handle {
  cursor: grab;
  padding: 4px 8px;
  color: #6c757d;
  background-color: rgba(0,0,0,0.03);
  border-radius: 4px;
}

.draggable-handle:active {
  cursor: grabbing;
}

.question-number {
  min-width: 25px;
  text-align: right;
}

.question-title {
  max-width: calc(100% - 130px); /* Adjust based on your layout */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
}

.direction-ltr {
  direction: ltr;
  text-align: left !important;
}

.question-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.question-actions .btn {
  padding: 2px 6px;
  font-size: 12px;
}