/* Modern Assessment Container */
.assessment-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
  }

  /* Assessment Header */
  .assessment-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  .assessment-title {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .assessment-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 0;
  }

  /* Main Content Card */
  .assessment-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
  }

  /* Left Sidebar Styling */
  .assessment-sidebar {
    color: white;
    padding: 30px;
  }

  .sidebar-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    margin-bottom: 20px;
  }

  .sidebar-title {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: start;
  }

  .instructor-avatar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
  }

  .instructor-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
  }

  .instructor-avatar img:hover {
    transform: scale(1.1);
  }

  .assessment-info {
    margin-top: 15px;
  }

  .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
  }

  .info-item i {
    width: 20px;
    color: rgba(255, 255, 255, 0.8);
  }

  .info-item strong {
    color: white;
  }

  /* Voice Selection */
  .voice-selection-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .voice-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
  }

  .voice-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
  }

  .voice-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(126, 195, 255, 0.3);
    transform: translateY(-2px);
  }

  .voice-option.active {
    background: rgba(126, 195, 255, 0.2);
    border-color: #7ec3ff;
    box-shadow: 0 0 0 1px rgba(126, 195, 255, 0.3);
  }

  .voice-option img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
  }

  .voice-option.active img {
    border-color: #7ec3ff;
    box-shadow: 0 0 0 2px rgba(126, 195, 255, 0.3);
  }

  .voice-option span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
  }

  .voice-option.active span {
    color: #7ec3ff;
  }

  /* Voice indicator */
  .voice-indicator {
    background: rgba(126, 195, 255, 0.1);
    border: 1px solid rgba(126, 195, 255, 0.3);
    border-radius: 20px;
    padding: 8px 12px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
  }

  .voice-indicator.active {
    background: rgba(126, 195, 255, 0.2);
    border-color: #7ec3ff;
  }

  .voice-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7ec3ff;
    animation: pulse 2s ease-in-out infinite;
  }

  /* Main Assessment Area */
  .assessment-main {
    padding: 40px;
  }

  .dialog-container {
    height: auto;
  }

  .dialog-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: bold;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .question-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border-right: 5px solid #007bff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
  }

  .question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
  }

  .question-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    text-align: left;
    font-weight: 500;
    letter-spacing: 0.3px;
    direction: ltr;
  }

  /* Media Display Styles */
  .question-media {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 2px solid rgba(0, 123, 255, 0.1);
  }

  .media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
  }

  .media-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
  }

  .media-item:hover {
    transform: translateY(-2px);
  }

  .media-item.image {
    border-top: 4px solid #28a745;
  }

  .media-item.audio {
    border-top: 4px solid #ffc107;
  }

  .media-item.video {
    border-top: 4px solid #dc3545;
  }

  .media-item.document {
    border-top: 4px solid #6f42c1;
  }

  .media-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #495057;
  }

  .media-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .media-audio, .media-video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .media-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 0.9rem;
  }

  .media-description {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .media-controls {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
  }

  .media-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .media-btn.play {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
  }

  .media-btn.play:hover {
    transform: scale(1.05);
  }

  .media-btn.download {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
  }

  .media-btn.download:hover {
    transform: scale(1.05);
  }

  /* Enhanced TTS Button */
  .tts-button-container {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 2;
  }

  .tts-button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .tts-button:hover {
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  }

  .tts-button:active {
    transform: scale(0.95) translateY(0px);
  }

  .tts-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
  }

  /* TTS Button Default State */
  .tts-button-default {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  }

  .tts-button-default:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  }

  .tts-button-default i {
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
  }

  /* TTS Button Loading State */
  .tts-button-loading {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    animation: pulse-orange 1.5s ease-in-out infinite;
  }

  .tts-button-loading i {
    color: white;
    font-size: 1rem;
    animation: spin 1s linear infinite;
  }

  /* TTS Button Playing State */
  .tts-button-playing {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: glow-green 2s ease-in-out infinite alternate;
  }

  .tts-button-playing i {
    color: white;
    font-size: 1.1rem;
    transform: scale(1.1);
  }

  /* TTS Button Error State */
  .tts-button-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: shake 0.5s ease-in-out;
  }

  .tts-button-error i {
    color: white;
    font-size: 1.1rem;
  }

  @keyframes pulse-orange {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }

  @keyframes glow-green {
    from { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
    to { box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6); }
  }

  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
  }

  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* TTS Tooltip */
  .tts-tooltip {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
  }

  .tts-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
  }

  .tts-button:hover + .tts-tooltip {
    opacity: 1;
    visibility: visible;
  }

  .tts-tooltip.show {
    opacity: 1;
    visibility: visible;
  }

  /* Recording Controls */
  .recording-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .recording-controls button {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .recording-controls button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
  }

  .recording-controls button:hover::before {
    left: 100%;
  }

  .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
  }

  .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
  }

  .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
  }

  .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
  }

  .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
  }

  .btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
  }

  .btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
  }

  .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  }

  .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  }

  /* Loading state for buttons */
  .btn.loading {
    position: relative;
    color: transparent;
  }

  .btn.loading .button-text {
    color: white;
    z-index: 2;
    position: relative;
  }

  .btn.loading .loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }

  .btn.loading .loading-spinner svg {
    width: 20px;
    height: 20px;
  }

  /* Recording Animation */
  #recordingAnimation {
    margin: 30px auto;
    text-align: center;
    padding: 25px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.2);
    max-width: 250px;
    position: relative;
    overflow: hidden;
  }

  #recordingAnimation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
  }

  @keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(0.8); opacity: 0.5; }
  }

  /* Progress Section */
  .progress-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
  }

  .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #495057;
  }

  #dialogProgressBar {
    height: 12px;
    border-radius: 10px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  #dialogProgressBar::-webkit-progress-value {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
  }

  #dialogProgressBar::-moz-progress-bar {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    border-radius: 10px;
  }

  .progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
  }

  /* Answer Status */
  .answer-status {
    margin: 25px 0;
    padding: 25px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }

  .answer-status h5 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #495057;
    font-weight: 600;
    font-size: 1.1rem;
  }

  .answer-status-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
  }

  .answer-status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background: white;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .answer-status-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .question-number {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
  }

  .status-indicator {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
    transition: all 0.3s ease;
  }

  .status-indicator.not-answered {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
  }

  .status-indicator.current {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
  }

  .status-indicator.answered {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
  }

  /* Audio Player */
  #audioPreview {
    width: 100%;
    margin: 20px 0;
    border-radius: 15px;
    height: 50px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* Final Result */
  #finalResult {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }

  #finalResult h5 {
    color: #155724;
    margin-bottom: 15px;
    font-size: 1.3rem;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .assessment-container {
      padding: 20px 0;
    }

    .assessment-title {
      font-size: 2rem;
    }

    .assessment-main {
      padding: 20px;
    }

    .recording-controls {
      flex-direction: column;
    }

    .recording-controls button {
      min-width: auto;
    }

    .answer-status-items {
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      gap: 10px;
    }

    .instructor-avatar img {
      width: 40px;
      height: 40px;
    }

    /* Mobile TTS Button Adjustments */
    .tts-button-container {
      position: static;
      margin: 15px 0;
      display: flex;
      justify-content: center;
    }

    .question-card {
      padding-top: 20px;
    }

    .question-text {
      margin-bottom: 15px;
    }
  }

  /* Loading Animation */
  .loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
  }

  /* Hover Effects */
  .btn-hover-effect {
    transition: all 0.3s ease;
  }

  .btn-hover-effect:hover {
    transform: translateY(-2px);
  }

   /* Voice Controls Card */
   .voice-controls-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .control-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
  }

  .control-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  }

  .control-button.primary {
    background: linear-gradient(135deg, #20B2AA, #008B8B);
    border-color: #AFEEEE;
   width: 50%
  }
  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  }

  .grammar-content {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
  }

  .grammar-main {
    padding: 30px;
  }

  #overallProgressBar {
    height: 12px;
    width: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  #overallProgressBar::-webkit-progress-bar {
    background: transparent;
  }

  #overallProgressBar::-webkit-progress-value {
    background: linear-gradient(90deg, #00c6ff 0%, #007bff 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
  }

  #overallProgressBar::-moz-progress-bar {
    background: linear-gradient(90deg, #00c6ff 0%, #007bff 100%);
    border-radius: 10px;
  }

  .progress-header span:first-child {
    font-weight: 600;
    color: #344767;
  }

  .progress-header #overall-percentage {
    font-weight: 700;
    color: #0d6efd;
  }

  .progress-section > div:last-of-type {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 0.9rem !important;
    color: #6c757d !important;
    margin-top: 5px !important;
  }

  #no-data-message {
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.12);
    animation: fadeInUp 0.4s ease-out both;
    border-radius: 16px;
  }

  #grammar-content-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .lesson-card,
  .examples-card,
  .mistakes-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef4ff 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(0, 123, 255, 0.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  }

  .lesson-title,
  .examples-title,
  .mistakes-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #324a6d;
    font-size: 1.05rem;
  }

  .lesson-text {
    color: #2c3e50;
    line-height: 1.9;
  }

  .examples-card ul li,
  .mistakes-card ul li {
    color: #40556f;
    line-height: 1.8;
    background: #ffffff;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #edf2f7;
  }

  .lesson-navigation .lesson-counter {
    color: #54657d;
    font-weight: 600;
  }

  .lesson-navigation .lesson-nav-buttons .btn {
    border-radius: 10px;
    padding: 8px 14px;
  }

  .lesson-action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .lesson-action-buttons .control-button,
  .lesson-action-buttons .btn {
    flex: 0 0 auto;
  }

  @media (min-width: 576px) {
    .lesson-action-buttons {
      flex-wrap: nowrap;
    }
  }

  /* Settings Section (Playback Speed) */
  .settings-section {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  }

  .setting-label {
    font-weight: 600;
    color: #344767;
    margin: 0;
  }

  .golden-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #ffffff;
    color: #2c3e50;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    padding: 8px 36px 8px 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 6 5-6' stroke='%23444766' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 14px;
    min-width: 140px;
  }

  .golden-select:focus {
    outline: none;
    border-color: #7ec3ff;
    box-shadow: 0 0 0 3px rgba(126,195,255,0.25);
  }

  .golden-select:hover {
    border-color: #cfd8e3;
  }

  @media (max-width: 768px) {
    .grammar-main {
      padding: 18px;
    }
  }
