.dashboard-wrapper {
  padding: 2rem;
}

.lesson-row {
  margin-bottom: 3rem;
}

.lesson-row-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #12B312; /* Màu xanh lá */
}

.lesson-scroll-wrapper {
  position: relative;
  overflow: hidden;
}

.lesson-list {
  display: flex;
  overflow-x: auto;
  gap: 1.2rem;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scrollbar-width: none;
}

.lesson-list::-webkit-scrollbar {
  display: none;
}

.lesson-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
  background: #1a1a1a;
  color: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  scroll-snap-align: start;
  min-width: 260px;
  width: 260px;

  border: 1px solid transparent; /* 👈 bổ sung */
  transition: all 0.2s ease; /* 👈 hiệu ứng mượt */
}


.lesson-card h5::before {
  content: none !important;
}


.lesson-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
  border: 1px solid #ffd634;
  font-weight: bolder;
}


.lesson-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: white !important;
  line-height: 1.6 !important;
  margin-bottom: 1rem;
}

.lesson-level {
  color: #bbb;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.btn-start {
  margin-top: auto; /* 🔥 Đây là key để đẩy nút xuống đáy */
  font-weight: normal;
  color: #0d0d0d;
  text-decoration: none;
  background: linear-gradient(to right,  #facc15, #ffd634)!important;
  padding: 0.5rem 1rem !important;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 0.3s ease;
	display: inline-block; /* 🟢 Đây là key */
  width: auto;           /* 🟢 Ngăn nó chiếm full chiều ngang */
  align-self: flex-start; /* hoặc center nếu muốn căn giữa */
}

.btn-start:hover {
  background: linear-gradient(to right, #0f8c0f, #4db44d);
	color:white;
}

.scroll-hint {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.4rem;
  color: #ccc;
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}



/* Wrapper cho toàn bộ giao diện dịch */
.translation-wrapper {
  background: #121826;
  color: #eee;
  padding: 40px 20px;
font-weight:300;
	border-radius: 10px
}

/* Layout 2 cột */
.translation-container {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ✅ Desktop: nằm ngang */
@media (min-width: 768px) {
  .translation-container {
    flex-direction: row;
    align-items: flex-start;
  }

  .translation-left {
    flex: 1 1 60%;
  }

  .translation-right {
    flex: 1 1 30%;
	  margin-bottom:20px;
  }
}

/* 📱 Mobile: xuống dòng */
@media (max-width: 767px) {
  .translation-container {
    flex-direction: column;
  }

  .translation-left,
  .translation-right {
    width: 100%;
  }
}


/* Tiêu đề bài học */
.lesson-title {
  font-size: 28px;
  font-weight: bold;
  color: #10b981;
  margin-bottom: 20px;
}

/* Hiển thị đoạn văn */
.paragraph-box {
  background: #2a3548;
  padding: 20px;
	color: #fff9;
  border-radius: 8px;
  line-height: 1.6;
  font-size: 15px;
	border-radius: 10px;
  margin-bottom: 20px;
}

/* Nhãn nhập */
.input-label {
  font-size: 15px;
  margin-bottom: 16px;
  display: block;
  color: #d1d5db;
	font-weight:300;
}

/* Ô nhập dịch */
.input-area {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #2a2e3b;
  color: #fff;
  font-family: inherit;
  resize: none;
  font-size: 15px;
  margin-bottom: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.input-area:focus {
  outline: none;
	  color: #fff !important;
  border-color: #888; /* tuỳ bạn muốn nhấn viền màu nào */
	  background: #2a2e3b !important;
}

/* Nút hành động */
.action-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0px;
}

.main-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-circle {
  background-color: #4b5563;
  color: white;
  width: 36px;
  height: 36px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-submit {
    margin-left: 20px;
    color: #facc15;
    font-weight: normal;
    border: 1px solid #737373 !important;
    border-radius: 6px;
    padding: 6px 12px !important;
    background-color: transparent;
    cursor: pointer;
    margin-right: 20px;
}

.btn-hint {
  background-color: #dbeafe;
  border-radius: 6px;
  color: #facc15;
  border: 1px solid #737373 !important;
  background-color: transparent;
}

.btn-nav {
  color: white !important;
  font-weight: 500;
}

.progress-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-bar {
  background-color: #1f2937;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  width: 100%;
}

.progress-fill {
  height: 100%;
  background-color: #10b981;
  transition: width 0.3s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
	margin-bottom:20px;
}
.progress-text {
  font-size: 14px;
  color: #ccc;
}


/* Feedback panel */
.feedback-title {
  font-size: 20px;
  font-weight: bold;
  color: #34d399;
  margin-bottom: 12px;
	margin-top:1em;
}
.feedback-box {
  font-size: 14px;
  background: #374151;
  padding: 16px;
			line-height:1.6;
  border-radius: 6px;
  margin-bottom: 20px;
  color: #d1d5db;
}
.feedback-section {
  border-top: 1px solid #4b5563;
  padding-top: 10px;
  margin-top: 12px;
}
.tips-label {
  font-size: 13px;
  color: #34d399;
	  margin-bottom: 16px;

}
.streak {
  color: #facc15;
  margin-top: 4px;
}
.mind {
  color: #60a5fa;
}

.highlight {
  color: #e5a800;
	  background: none!important;
  font-weight: bold;
}

.btn-next.hidden {
  display: none;
}


.gpt-feedback {
  background: #1f2937;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
  margin-top: 12px;
  color: #e5e7eb;
  font-size: 15px;
}

.feedback-content {
  margin-top: 8px;
  line-height: 1.6;
}

.text-red-400 {
  color: #f87171;
}

.lesson-preview {
  font-size: 14px;
  color: #ccc;
  margin: 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lesson-position-hint {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}

.hint-box {
	font-size: 14px; }

.feedback-result-box {
  background: #e8e8e8; /* Màu nền sẫm nhẹ */
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #141414;
  margin-bottom: 12px;
  font-weight: 300;
	  justify-content: center;   /* căn giữa nội dung ngang bên trong */
  font-size: 15px;
  border-left: 4px solid #10b981; /* xanh lá */
}

.result-icon {
  font-size: 18px;
}

.result-text {
  font-size: 15px;
}

.text-error {
  color: #f87171;
  font-weight: 600;
}
.text-green {
  color: #4ade80;
  font-weight: 600;
}
.text-yellow {
  color: #facc15;
  font-weight: 600;
}
.text-blue-300 {
  color: #93c5fd;
  font-weight: 600;
}

.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.btn-circle:hover {
  color: #4ade80;
}
