/* --- THIS IS THE CORRECTED CODE --- */

/* 1. Import the Noto Sans font for Chinese characters from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&display=swap');

/* --- General Body & Typography --- */
body {
    /* This new font stack uses your preferred "Inter" font first, 
       and falls back to "Noto Sans SC" for any characters (like Chinese) 
       that "Inter" doesn't have. */
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                 "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", 
                 "Microsoft YaHei", sans-serif;
    background-color: #f8f9fa;
}

/* --- THE REST OF YOUR CSS REMAINS THE SAME --- */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #212529;
}

.lead {
    font-weight: 400;
}

/* --- Header/Navbar --- */
.navbar-brand {
    font-size: 1.5rem;
    color: #198754 !important;
}

/* --- Scenario Cards --- */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    color: #343a40;
}

/* --- Admin Dashboard --- */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link .fas {
    width: 24px;
    text-align: center;
}

.sidebar .nav-link.active {
    color: #0d6efd;
}

/* --- Scenario View --- */
#transcript {
    font-size: 0.95rem;
    line-height: 1.6;
}

#transcript strong {
    font-weight: 600;
}

/* File: static/css/styles.css */

/* --- Guided Learning Path --- */
.learning-path .unit-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 2rem;
    position: relative;
    color: #0d6efd; /* Bootstrap Primary */
}

.learning-path .scenario-node {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

/* Draws the connecting line between nodes */
.learning-path .scenario-node:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 60px; /* Aligns with the center of the icon */
    width: 4px;
    height: 2rem;
    background-color: #dee2e6; /* Bootstrap gray-300 */
}

.learning-path .node-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #fff;
    border: 4px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #dee2e6;
    transition: all 0.3s ease;
}

.learning-path .node-content {
    margin-left: 2rem;
}

/* Unlocked & Completed Styles */
.learning-path .scenario-node.unlocked .node-icon {
    border-color: #0d6efd; /* Blue for unlocked */
    color: #0d6efd;
    cursor: pointer;
}
.learning-path .scenario-node.completed .node-icon {
    border-color: #198754; /* Green for completed */
    background-color: #198754;
    color: #fff;
}
.learning-path .scenario-node.unlocked:hover .node-icon {
    transform: scale(1.1);
}

/* Locked Styles */
.learning-path .scenario-node.locked {
    opacity: 0.6;
}
.learning-path .scenario-node.locked .node-icon {
    background-color: #e9ecef;
}
.learning-path .scenario-node.locked .node-content a {
    pointer-events: none;
    color: #6c757d;
}

/* Add this to styles.css */
.speakable-item .speak-btn {
  opacity: 0.2; /* Icon is barely visible by default */
  transition: opacity 0.2s ease-in-out;
}

.speakable-item:hover .speak-btn {
  opacity: 1; /* Icon becomes fully visible on hover */
}