body {
  margin: 0;
  background-color: #f7f9fc;
}

.navbar {
  background-color: #17263b;
}

.hero {
  margin-top: 24px;
  min-height: 280px;
  border-radius: 15px;
  background-color: #fff;
}

.hero-content {
  padding: 50px;
}

.hero-content>p:first-child {
  color: #ff4f68;
  font-weight: 600;
}

.hero {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
}

.hero h1 span {
  color: #ff4f68;
}

.hero h1+p {
  color: #718096;
  font-size: 16px;
}

.start-btn {
  background-color: #ff4f68;
  color: white;
  padding: 12px 20px;
  font-weight: 600;
  border: none;
}

.start-btn:hover {
  background-color: #f03d58;
  color: white;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ff4f68;
  color: white;
  font-size: 21px;
  font-weight: 700;
}

.navbar-brand {
  color: white;
  font-size: 21px;
  font-weight: 700;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  width: 240px;
}

.search-box i {
  color: #cbd5e1;
}

.search-box input {
  width: 100%;
  margin-left: 8px;
  background: transparent;
  border: none;
  outline: none;
  color: white;
}

.search-box input::placeholder {
  color: #aab6c5;
}

.nav-icon {
  background: none;
  border: none;
  color: white;
  font-size: 19px;
  margin-left: 15px;
}

.user-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background-color: #e2e8f0;
  color: #475569;
  margin-left: 12px;
}

.learning-categories {
  margin-top: 25px;
}

.category-card {
  background-color: white;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: 20px;
  height: 100%;
  transition: 0.2s ease;
}

.category-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff0f3;
  color: #ff4f68;
  border-radius: 10px;
  font-size: 20px;
  margin-top: 15px;
}

.category-card h3 {
  font-size: 16px;
  font-weight: 700;
}

.category-card p {
  color: #718096;
  font-size: 13px;
  line-height: 1.5;
}

.category-card a {
  color: #17263b;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(23, 38, 59, 0.08);
}

.kanji-icon{
  background-color: #edf5ff;
  color: #3d82ed;
}

.grammar-icon{
  background-color: #ecfbf5;
  color: #22c486;
}

.practice-icon{
  background-color: #f2efff;
  color: #7856e8;
}

.learning-progress {
    margin-top: 35px;
    margin-bottom: 45px;
}

.progress-card {
    height: 100%;
    padding: 20px;
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    transition: 0.2s ease;
}

.progress-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(23, 38, 59, 0.08);
}

.progress-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
}

.progress-card-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 17px;
}

.progress-card h3 {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 14px;
}

.progress-card h3 small {
    font-size: 12px;
    font-weight: 400;
    color: #7c8a9d;
}

.progress-card .progress {
    height: 7px;
    border-radius: 10px;
    background: #e9edf2;
}

.progress-card p {
    margin: 10px 0 0;
    font-size: 11px;
    color: #7c8a9d;
}

.daily-dashboard {
    margin-top: 35px;
    margin-bottom: 45px;
}

.daily-card {
    height: 100%;
    padding: 22px;
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 14px;
}

.daily-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.daily-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #8a96a6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.daily-card h3 {
    margin-bottom: 7px;
    font-size: 18px;
    font-weight: 700;
}

.daily-card p {
    color: #7c8a9d;
    font-size: 12px;
}

.daily-icon,
.streak-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 21px;
}

.daily-icon {
    background: #ecfbf5;
    color: #22a879;
}

.goal-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.goal-summary strong {
    font-size: 25px;
    margin-right: 7px;
}

.goal-summary span {
    color: #7c8a9d;
    font-size: 12px;
}

.goal-summary .goal-percent {
    color: #22a879;
    font-weight: 700;
}

.goal-progress {
    height: 8px;
    background: #e9edf2;
    border-radius: 10px;
}

.goal-footer {
    margin: 14px 0 0;
}

.goal-footer i {
    color: #22a879;
    margin-right: 5px;
}

.streak-icon {
    background: #fff0e3;
    color: #f28a32;
}

.streak-count {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.streak-count > i {
    color: #f28a32;
    font-size: 25px;
}

.streak-count strong {
    font-size: 30px;
}

.streak-count span {
    color: #7c8a9d;
    font-size: 12px;
}

.week-days {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: #8a96a6;
    font-size: 11px;
}

.day i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f4f8;
    font-size: 12px;
}

.day.completed i {
    background: #e7f8ef;
    color: #22a879;
}

.day.today i {
    background: #fff0e3;
    color: #f28a32;
}

.latest-resources {
    margin-top: 40px;
    margin-bottom: 45px;
}

.resource-card {
    height: 100%;
    overflow: hidden;
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    transition: 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(23, 38, 59, 0.08);
}

.resource-banner {
    min-height: 135px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 20px;
}

.resource-banner > span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.vocab-banner {
    background: #fff0f3;
    color: #e74661;
}

.kanji-banner {
    background: #edf5ff;
    color: #347fd4;
}

.grammar-banner {
    background: #ecfbf5;
    color: #22a879;
}

.resource-japanese {
    align-self: flex-end;
    font-size: 30px;
    font-weight: 700;
}

.resource-content {
    padding: 18px 20px;
}

.resource-level {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 20px;
    background: #fff0f4;
    color: #ff4f68;
    font-size: 10px;
    font-weight: 700;
}

.resource-content h5 {
    margin-bottom: 8px;
    color: #17263b;
    font-size: 15px;
    font-weight: 700;
}

.resource-content p {
    min-height: 38px;
    margin-bottom: 16px;
    color: #7c8a9d;
    font-size: 12px;
    line-height: 1.6;
}

.resource-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #eef1f5;
    font-size: 11px;
}

.resource-footer > span {
    color: #7c8a9d;
}

.resource-footer a {
    color: #17263b;
    font-weight: 600;
    text-decoration: none;
}

.resource-footer a:hover {
    color: #ff4f68;
}

.continue-learning {
    margin-top: 45px;
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 21px;
    font-weight: 700;
    margin: 0;
}

.section-header a {
    color: #1471e8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.chapter-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 145px;
    padding: 14px;
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    transition: 0.2s ease;
}

.chapter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(23, 38, 59, 0.08);
}

.chapter-image {
    width: 70px;
    height: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 36px;
    font-weight: 700;
}

.chapter-1 {
    background: #ffe4e9;
    color: #e74661;
}

.chapter-2 {
    background: #dcefff;
    color: #347fd4;
}

.chapter-3 {
    background: #fff0d9;
    color: #d98b22;
}

.chapter-info {
    flex: 1;
    min-width: 0;
}

.chapter-number {
    display: block;
    color: #7c8a9d;
    font-size: 11px;
    margin-bottom: 3px;
}

.chapter-info h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 7px;
}

.level-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    background: #fff0f4;
    color: #ff4f68;
    font-size: 10px;
    font-weight: 700;
}

.chapter-bottom {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
    color: #8a96a6;
    font-size: 10px;
}


.chapter-arrow {
    color: #8a96a6;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.chapter-card:hover .chapter-arrow {
    transform: translateX(3px);
    color: #ff4f68;
}


/* Quick Actions */
.quick-actions {
    margin-top: 35px;
    margin-bottom: 45px;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    height: 100%;
    min-height: 100px;
    padding: 16px;
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    text-decoration: none;
    color: #17263b;
    transition: 0.2s ease;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(23, 38, 59, 0.08);
    border-color: #ffd1da;
}

.quick-action-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 19px;
}

.vocab-action {
    background: #fff0f3;
    color: #ff4f68;
}

.kanji-action {
    background: #edf5ff;
    color: #347fd4;
}

.quiz-action {
    background: #f2efff;
    color: #7856e8;
}

.grammar-action {
    background: #ecfbf5;
    color: #22a879;
}

.quick-action-card h5 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 5px;
}

.quick-action-card p {
    font-size: 11px;
    color: #7c8a9d;
    margin: 0;
    line-height: 1.5;
}

.quick-action-arrow {
    margin-left: auto;
    align-self: flex-start;
    color: #8a96a6;
    font-size: 14px;
    flex-shrink: 0;
}

.quick-action-card:hover .quick-action-arrow {
    color: #ff4f68;
}

.vocabulary-page {
    padding-top: 40px;
    padding-bottom: 50px;
}

.vocabulary-header {
    margin-bottom: 30px;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
}

.back-link:hover {
    color: #ff4f68;
}

.vocabulary-header h1 {
    margin-bottom: 10px;
    font-size: 30px;
    font-weight: 700;
}

.vocabulary-header p {
    color: #718096;
    font-size: 14px;
}


/* Vocabulary Chapter Selection */

.chapter-selection {
    margin-top: 35px;
}

.chapter-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.chapter-heading h2 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 6px;
}

.chapter-heading p {
    color: #718096;
    font-size: 13px;
    margin: 0;
}

.total-chapters {
    color: #ff4f68;
    background: #fff0f3;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.vocab-chapter-card {
    height: 100%;
    padding: 20px;
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    transition: 0.2s ease;
}

.vocab-chapter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(23, 38, 59, 0.08);
}

.vocab-chapter-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.vocab-chapter-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 27px;
    font-weight: 700;
}

.vocab-chapter-icon.pink {
    background: #ffe4e9;
    color: #e74661;
}

.vocab-chapter-icon.blue {
    background: #dcefff;
    color: #347fd4;
}

.vocab-chapter-icon.orange {
    background: #fff0d9;
    color: #d98b22;
}

.chapter-level {
    background: #fff0f3;
    color: #ff4f68;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.vocab-chapter-number {
    color: #8a96a6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.vocab-chapter-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 7px 0;
}

.vocab-chapter-card > p {
    min-height: 38px;
    color: #718096;
    font-size: 12px;
    line-height: 1.6;
}

.vocab-chapter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: 12px;
    border-top: 1px solid #edf0f4;
    font-size: 11px;
}

.vocab-chapter-footer span {
    color: #718096;
}

.vocab-chapter-footer a {
    color: #ff4f68;
    text-decoration: none;
    font-weight: 700;
}

/* Chapter Learning Page */

.chapter-page {
    padding-top: 35px;
    padding-bottom: 60px;
}

.chapter-page-header {
    padding: 25px 0 30px;
}

.chapter-page-header h1 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

.chapter-page-header p {
    color: #718096;
    font-size: 14px;
}

.chapter-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    color: #718096;
    font-size: 12px;
}

.chapter-stats i {
    margin-right: 5px;
    color: #ff4f68;
}

.vocabulary-content {
    margin-top: 15px;
}

.vocabulary-content .section-header > span {
    color: #ff4f68;
    font-size: 12px;
    font-weight: 600;
}

/* Vocabulary List */

.vocabulary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.vocabulary-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    transition: 0.2s ease;
}

.vocabulary-item:hover {
    border-color: #ffd1da;
    box-shadow: 0 5px 15px rgba(23, 38, 59, 0.05);
}

.word-japanese {
    min-width: 110px;
    color: #17263b;
    font-size: 23px;
    font-weight: 700;
}

.word-reading {
    min-width: 100px;
    color: #ff4f68;
    font-size: 13px;
}

.word-meaning {
    flex: 1;
    min-width: 0;
}

.word-meaning h5 {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 700;
}

.word-meaning p {
    margin-bottom: 3px;
    color: #17263b;
    font-size: 12px;
}

.word-meaning span {
    color: #8a96a6;
    font-size: 11px;
}

.word-audio {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: #fff0f3;
    color: #ff4f68;
    cursor: pointer;
}

.word-audio:hover {
    background: #ff4f68;
    color: white;
}

/* Mobile Layout */
@media (max-width: 576px) {
    .vocabulary-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .word-japanese {
        min-width: 90px;
    }

    .word-reading {
        min-width: 80px;
    }

    .word-meaning {
        flex-basis: 100%;
        order: 3;
    }

    .word-audio {
        margin-left: auto;
    }
}

/* Flashcard Section */

.flashcard-section {
    margin-top: 35px;
    margin-bottom: 40px;
}

#card-counter {
    color: #ff4f68;
    font-size: 13px;
    font-weight: 700;
}

.flashcard-container {
    max-width: 600px;
    height: 290px;
    margin: 20px auto;
    perspective: 1000px;
}

.flashcard {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    cursor: pointer;
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flashcard-front {
    background: white;
}

.flashcard-back {
    background: #fff0f3;
    transform: rotateY(180deg);
}

.flashcard-label {
    color: #8a96a6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.flashcard-front h2 {
    margin-top: 25px;
    font-size: 42px;
    font-weight: 700;
    color: #17263b;
}

.flashcard-front p {
    color: #ff4f68;
    font-size: 15px;
}

.flashcard-back h2 {
    margin-top: 20px;
    font-size: 27px;
    font-weight: 700;
    color: #17263b;
}

.flashcard-back p {
    margin-top: 15px;
    font-size: 20px;
    color: #17263b;
}

.flashcard-back span:last-child {
    color: #718096;
    font-size: 13px;
}

.flip-hint {
    position: absolute;
    bottom: 20px;
    color: #8a96a6;
    font-size: 11px;
}

.flashcard-controls,
.flashcard-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.flashcard-btn,
.difficult-btn,
.known-btn {
    padding: 10px 18px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.flashcard-btn {
    background: white;
    border: 1px solid #e8edf3;
    color: #17263b;
}

.flip-btn {
    background: #fff0f3;
    color: #ff4f68;
    border-color: #fff0f3;
}

.difficult-btn {
    background: #fff5e9;
    color: #d98b22;
    border: 1px solid #ffe2bd;
}

.known-btn {
    background: #e7f8ef;
    color: #22a879;
    border: 1px solid #c9efda;
}

.flashcard-btn:hover,
.difficult-btn:hover,
.known-btn:hover {
    transform: translateY(-2px);
}

/* Vocabulary Learning Statistics */

.vocabulary-statistics {
    margin-top: 35px;
    margin-bottom: 35px;
}

.vocab-stat-card {
    padding: 18px;
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 12px;
}

.stat-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 17px;
    margin-bottom: 12px;
}

.known-stat {
    background: #e7f8ef;
    color: #22a879;
}

.difficult-stat {
    background: #fff5e9;
    color: #d98b22;
}

.remaining-stat {
    background: #edf5ff;
    color: #347fd4;
}

.vocab-stat-card h3 {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 4px;
}

.vocab-stat-card p {
    color: #718096;
    font-size: 12px;
    margin: 0;
}

.chapter-overall-progress {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 12px;
}

.overall-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
}

#completion-percent {
    color: #22a879;
    font-weight: 700;
}

.chapter-overall-progress .progress {
    height: 9px;
    background: #e9edf2;
    border-radius: 10px;
}

.chapter-overall-progress p {
    margin: 10px 0 0;
    color: #718096;
    font-size: 11px;
}

.vocabulary-tools {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
}


.search-box input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  outline: none;

  color: #263238 !important;
  -webkit-text-fill-color: #263238;
  background-color: #ffffff;
  caret-color: #263238;
  font-size: 16px;
}

.search-box input::placeholder {
  color: #a0aec0;
  opacity: 1;
}


.search-box input:focus,
.vocabulary-filter:focus {
  border-color: #347fd4;
}

.vocabulary-filter {
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  color: #333;
  outline: none;
  min-width: 160px;
}

.no-vocabulary-results {
  padding: 25px;
  text-align: center;
  color: #718096;
  display: none;
}

.search-box {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: #718096;
  pointer-events: none;
}

/* Vocabulary Quiz */

.quiz-section {
  margin: 40px 0;
  padding: 25px;
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
}

.quiz-level {
  background: #edf5ff;
  color: #347fd4;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.quiz-intro,
.quiz-results {
  text-align: center;
  padding: 35px 15px;
}

.quiz-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf5ff;
  color: #347fd4;
  border-radius: 50%;
  font-size: 27px;
}

.quiz-intro h3,
.quiz-results h3 {
  font-size: 21px;
  font-weight: 700;
}

.quiz-intro p,
.quiz-results p {
  color: #718096;
  font-size: 14px;
}

.quiz-details {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 20px 0;
  color: #718096;
  font-size: 13px;
}

.start-quiz-btn {
  border: none;
  background: #347fd4;
  color: white;
  padding: 12px 22px;
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
}

.start-quiz-btn:hover {
  background: #2468b5;
}

.quiz-container {
  padding: 20px 5px;
}

.quiz-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

.quiz-container .progress {
  height: 8px;
  margin-bottom: 28px;
}

#quiz-question {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quiz-option {
  padding: 15px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  color: #263238;
}

.quiz-option:hover {
  border-color: #347fd4;
  background: #f5f9ff;
}

.quiz-option.correct {
  border-color: #22a879;
  background: #e7f8ef;
}

.quiz-option.incorrect {
  border-color: #e05252;
  background: #fff0f0;
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-feedback {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
}

#final-score {
  font-size: 38px;
  font-weight: 700;
  margin: 15px 0;
}

@media (max-width: 576px) {
  .quiz-options {
    grid-template-columns: 1fr;
  }

  .quiz-section {
    padding: 16px;
  }

  .quiz-details {
    gap: 12px;
    flex-wrap: wrap;
  }
}

.question-type-label {
  display: inline-block;
  padding: 6px 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #edf5ff;
  color: #347fd4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.quiz-settings {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 25px auto;
  max-width: 430px;
}

.quiz-setting-group {
  flex: 1;
  text-align: left;
}

.quiz-setting-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 7px;
}

.quiz-setting-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #263238;
  font-size: 13px;
}

.quiz-setting-group select:focus {
  outline: none;
  border-color: #347fd4;
}

@media (max-width: 450px) {
  .quiz-settings {
    flex-direction: column;
  }
}

/* Kanji Learning Page */

.kanji-header {
  margin: 35px 0;
}

.kanji-header h1 {
  font-size: 32px;
  font-weight: 750;
  margin: 12px 0;
  color: #263238;
}

.kanji-header p {
  color: #718096;
  font-size: 14px;
  max-width: 600px;
}

.page-label {
  color: #347fd4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.kanji-overview {
  margin-top: 35px;
}

.kanji-level-card {
  height: 100%;
  padding: 24px;
  border: 1px solid #e8edf3;
  border-radius: 13px;
  background: white;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kanji-level-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.kanji-level-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #347fd4;
  background: #edf5ff;
  padding: 6px 9px;
  border-radius: 6px;
}

.kanji-level-card h3 {
  font-size: 23px;
  font-weight: 700;
  margin: 18px 0 8px;
}

.kanji-level-card p {
  font-size: 13px;
  color: #718096;
}

.kanji-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  font-size: 12px;
  color: #718096;
  gap: 8px;
}

.kanji-card-footer a {
  color: #347fd4;
  text-decoration: none;
  font-weight: 600;
}


/* N5 Kanji Chapter Selection */

.kanji-chapters {
  margin-top: 35px;
}

.kanji-chapter-card {
  height: 100%;
  padding: 22px;
  background: white;
  border: 1px solid #e8edf3;
  border-radius: 13px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kanji-chapter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.kanji-chapter-symbol {
  padding: 15px;
  margin-bottom: 18px;
  background: #f5f8fc;
  border-radius: 10px;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 8px;
  color: #347fd4;
}

.kanji-chapter-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 14px 0 8px;
}

.kanji-chapter-card p {
  font-size: 13px;
  color: #718096;
  min-height: 40px;
}

.kanji-chapter-card .kanji-card-footer {
  margin-top: 20px;
}
