@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap');

:root {
  --background-color: #0d0d0d;
  --surface-color: #1a1a1a;
  --primary-color: #89b1f7;
  --primary-light: #a9c7f9;
  --primary-dark: #5a82d4;
  --on-surface-color: #e0e0e0;
  --on-surface-variant-color: #a0a0a0;
  --border-color: #3c3c3c;
  --font-family: 'Poppins', sans-serif;
  --success-color: #4caf50;
  --success-light: #66bb6a;
  --error-color: #f44336;
  --warning-color: #ff9800;
  --info-color: #2196f3;
  --outline-color: #424242;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  background-color: var(--background-color);
  color: var(--on-surface-color);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

#three-js-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* Allow clicks to pass through */
  background: radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%);
}

/* ========== GLOBAL HEADER BAR ========== */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--surface-color), rgba(26, 26, 26, 0.95));
  border-bottom: 2px solid var(--primary-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.header-left {
  flex: 1;
}

.test-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-center {
  flex: 1;
  text-align: center;
}

.progress-indicator {
  font-size: 0.95rem;
  color: var(--on-surface-variant-color);
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  background-color: rgba(137, 177, 247, 0.1);
  border-radius: 20px;
  border: 1px solid var(--primary-color);
}

.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--on-surface-variant-color);
  transition: all 0.3s ease;
}

.connection-status i {
  font-size: 0.6rem;
  animation: pulse-dot 2s ease-in-out infinite;
}

.connection-status.online {
  color: var(--success-color);
}

.connection-status.offline {
  color: var(--error-color);
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.timer-display {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--warning-color);
  min-width: 70px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.timer-display.hidden {
  display: none;
}

/* ========== MAIN CONTENT ========== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.content-wrapper {
  width: 100%;
  max-width: 900px;
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== START SCREEN ========== */
.gemini-card {
  background: linear-gradient(135deg, var(--surface-color), rgba(26, 26, 26, 0.8));
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease-in-out;
  position: relative;
  overflow: hidden;
}

.gemini-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.start-screen-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.gemini-card h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--on-surface-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gemini-card p {
  color: var(--on-surface-variant-color);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.gemini-button-container {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.gemini-button {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--background-color);
  border: none;
  border-radius: 50px;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(137, 177, 247, 0.35);
  position: relative;
  overflow: hidden;
}

.gemini-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
  z-index: 0;
}

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

.gemini-button:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  box-shadow: 0 8px 25px rgba(137, 177, 247, 0.5);
  transform: translateY(-2px);
}

.gemini-button:active {
  transform: translateY(0);
}

.gemini-button.secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.gemini-button.secondary:hover {
  background-color: rgba(137, 177, 247, 0.15);
  border-color: var(--primary-light);
  color: var(--primary-light);
}

/* Navigation Buttons */
.navigation-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
}

.navigation-buttons.hidden {
  display: none !important;
}

/* ========== TEST SECTION ========== */
.test-section {
  display: flex !important;
  flex-direction: column;
  gap: 2rem;
}

.test-section.hidden {
  display: none !important;
}

/* ========== INTERACTION PANEL ========== */
.interaction-panel {
  background: linear-gradient(135deg, var(--surface-color), rgba(26, 26, 26, 0.8));
  border: 2px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  min-height: 350px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ========== PHASE CONTAINERS ========== */
.phase-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  animation: fadeIn 0.4s ease-in-out;
}

.phase-container.hidden {
  display: none;
}

.phase-label {
  font-size: 1.2rem;
  color: var(--on-surface-variant-color);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ========== WAVEFORM VISUALIZER ========== */
.waveform-visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: 100px;
  width: 100%;
  margin: 1rem 0;
}

.waveform-bar {
  width: 8px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
  border-radius: 4px;
  animation: waveform-animate 0.8s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(137, 177, 247, 0.4);
}

.waveform-bar:nth-child(1) {
  height: 25px;
  animation-delay: 0s;
}

.waveform-bar:nth-child(2) {
  height: 45px;
  animation-delay: 0.1s;
}

.waveform-bar:nth-child(3) {
  height: 65px;
  animation-delay: 0.2s;
}

.waveform-bar:nth-child(4) {
  height: 80px;
  animation-delay: 0.3s;
}

.waveform-bar:nth-child(5) {
  height: 65px;
  animation-delay: 0.4s;
}

.waveform-bar:nth-child(6) {
  height: 45px;
  animation-delay: 0.5s;
}

.waveform-bar:nth-child(7) {
  height: 25px;
  animation-delay: 0.6s;
}

@keyframes waveform-animate {

  0%,
  100% {
    height: 15px;
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* ========== MICROPHONE SECTION ========== */
.microphone-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.mic-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(137, 177, 247, 0.2);
}

.mic-icon.inactive {
  background-color: rgba(137, 177, 247, 0.05);
  border: 3px solid var(--border-color);
  color: var(--on-surface-variant-color);
  opacity: 0.6;
}

.mic-icon.active {
  background: radial-gradient(circle, #ff6b6b, #ee5a52);
  color: white;
  animation: mic-pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 50px rgba(255, 107, 107, 0.6), inset 0 0 20px rgba(255, 107, 107, 0.3);
  border: 3px solid #ff6b6b;
}

@keyframes mic-pulse {

  0%,
  100% {
    box-shadow: 0 0 50px rgba(255, 107, 107, 0.6), inset 0 0 20px rgba(255, 107, 107, 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 80px rgba(255, 107, 107, 0.8), inset 0 0 30px rgba(255, 107, 107, 0.5);
    transform: scale(1.05);
  }
}

/* ========== RECORDING TIMER ========== */
.recording-timer {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-background {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 5;
}

.ring-progress {
  fill: none;
  stroke: url(#gradient);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 141.37;
  stroke-dashoffset: 141.37;
  transition: stroke-dashoffset 0.1s linear;
}

.timer-text {
  position: relative;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  z-index: 10;
  font-variant-numeric: tabular-nums;
}

/* ========== BEEP FLASH ========== */
.beep-flash {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  border: 4px solid var(--warning-color);
  animation: beep-flash-animate 0.5s ease-out;
}

.beep-flash.hidden {
  display: none;
}

@keyframes beep-flash-animate {
  0% {
    border-color: var(--warning-color);
    box-shadow: 0 0 30px rgba(255, 152, 0, 1);
    opacity: 1;
  }

  100% {
    border-color: transparent;
    box-shadow: 0 0 80px rgba(255, 152, 0, 0);
    opacity: 0;
  }
}

/* ========== SECTION CONTENT ========== */
.section-content {
  width: 100%;
  animation: fadeIn 0.4s ease-in-out;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary-light);
}

.section-header p {
  font-size: 1rem;
  color: var(--on-surface-variant-color);
  line-height: 1.7;
}

/* ========== REPEAT ITEM ========== */
.repeat-item {
  background-color: rgba(137, 177, 247, 0.08);
  border: 2px solid var(--primary-color);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.repeat-text {
  font-size: 1.4rem;
  color: var(--on-surface-color);
  font-weight: 500;
  line-height: 1.9;
  margin: 1rem 0;
}

/* ========== CONVERSATION ========== */
.conversation-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 1.2rem 1.8rem;
  border-radius: 1.5rem;
  word-wrap: break-word;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.chat-bubble.question {
  background-color: rgba(137, 177, 247, 0.12);
  border: 1px solid var(--primary-color);
  align-self: flex-start;
  color: var(--on-surface-color);
}

.chat-bubble.tip {
  background-color: rgba(255, 152, 0, 0.12);
  border-left: 4px solid var(--warning-color);
  align-self: center;
  color: var(--warning-color);
  font-size: 0.95rem;
  font-style: italic;
  max-width: 90%;
}

/* ========== SUMMARY SCREEN ========== */
.summary-screen {
  text-align: center;
}

.summary-header {
  margin-bottom: 1.5rem;
}

.summary-icon {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 1rem;
  display: block;
  animation: bounce 1s ease-out;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.summary-subtitle {
  color: var(--on-surface-variant-color);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.summary-card {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(137, 177, 247, 0.1));
  border: 2px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--success-color));
}

.summary-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(137, 177, 247, 0.25);
  transform: translateY(-5px);
}

.summary-card .score {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--success-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.summary-card .label {
  font-size: 0.9rem;
  color: var(--on-surface-variant-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* Summary breakdown */
.summary-breakdown {
  margin: 2.5rem 0;
  text-align: left;
}

.summary-breakdown h3 {
  font-size: 1.3rem;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
  text-align: center;
}

.summary-log {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 1rem;
}

.summary-log-item {
  background-color: rgba(137, 177, 247, 0.05);
  border-left: 4px solid var(--primary-color);
  border-radius: 0.75rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.7;
  transition: all 0.3s ease;
}

.summary-log-item:hover {
  background-color: rgba(137, 177, 247, 0.1);
  transform: translateX(5px);
}

.summary-log-item .activity-type {
  font-weight: 700;
  color: var(--primary-light);
  font-size: 1rem;
}

.summary-log-item .response-text {
  color: var(--on-surface-variant-color);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  word-break: break-word;
}

/* Scrollbar styling */
.summary-log::-webkit-scrollbar {
  width: 10px;
}

.summary-log::-webkit-scrollbar-track {
  background: transparent;
}

.summary-log::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 10px;
  border: 2px solid var(--surface-color);
}

.summary-log::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-color);
}

/* ========== INSTRUCTIONS MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: linear-gradient(135deg, var(--surface-color), rgba(26, 26, 26, 0.9));
  border: 2px solid var(--primary-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  width: 90%;
  max-width: 650px;
  position: relative;
  animation: slideUp 0.4s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.modal-content p {
  color: var(--on-surface-variant-color);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.instructions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.instruction-card {
  background-color: rgba(137, 177, 247, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.instruction-card:hover {
  background-color: rgba(137, 177, 247, 0.15);
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.instruction-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.instruction-card h4 {
  color: var(--on-surface-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.instruction-card p {
  font-size: 0.85rem;
  margin: 0;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--on-surface-variant-color);
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--primary-light);
  transform: rotate(90deg);
}

/* ========== GLOBAL FOOTER BAR ========== */
.footer-bar {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
}

.copyright-text {
  margin: 0;
  color: var(--on-surface-variant-color);
  font-size: 0.9rem;
  text-align: center;
}

/* ========== UTILITY CLASSES ========== */
.hidden {
  display: none !important;
}

.space-y-4 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.p-4 {
  padding: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.gemini-border {
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  background-color: rgba(137, 177, 247, 0.05);
}

.status-text {
  font-size: 0.95rem;
  color: var(--on-surface-variant-color);
  text-align: center;
  margin: 1rem 0;
}

.response-area {
  width: 100%;
  min-height: 140px;
  background-color: var(--background-color);
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.2rem;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--on-surface-color);
  resize: vertical;
  transition: all 0.3s ease;
}

.response-area:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(137, 177, 247, 0.3);
  background-color: rgba(137, 177, 247, 0.02);
}

.response-area::placeholder {
  color: var(--on-surface-variant-color);
  opacity: 0.6;
}

.inline-blank-input {
  display: inline-block;
  min-width: 100px;
  padding: 0.4rem 0.8rem;
  border: none;
  border-bottom: 3px solid var(--primary-color);
  background-color: transparent;
  color: var(--on-surface-color);
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
}

.inline-blank-input:focus {
  border-bottom-color: var(--warning-color);
  box-shadow: 0 3px 0 rgba(255, 152, 0, 0.3);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .header-bar {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .test-name {
    font-size: 1.1rem;
  }

  .header-center {
    order: 3;
    width: 100%;
  }

  .progress-indicator {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .interaction-panel {
    padding: 1.5rem;
    min-height: auto;
  }

  .waveform-visualizer {
    height: 70px;
    gap: 6px;
  }

  .waveform-bar {
    width: 6px;
  }

  .mic-icon {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }

  .recording-timer {
    width: 120px;
    height: 120px;
  }

  .timer-text {
    font-size: 1.8rem;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gemini-card {
    padding: 1.5rem;
  }

  .gemini-card h2 {
    font-size: 1.6rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .instructions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-bar {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .test-name {
    font-size: 0.95rem;
  }

  .main-content {
    padding: 1rem 0.5rem;
  }

  .header-right {
    gap: 0.5rem;
  }

  .connection-status {
    display: none;
  }

  .interaction-panel {
    padding: 1rem;
    border-radius: 1rem;
  }

  .waveform-visualizer {
    height: 50px;
    gap: 4px;
  }

  .waveform-bar {
    width: 4px;
  }

  .mic-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .recording-timer {
    width: 100px;
    height: 100px;
  }

  .timer-text {
    font-size: 1.4rem;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    padding: 1.5rem 1rem;
  }

  .summary-card .score {
    font-size: 2.5rem;
  }

  .gemini-card {
    padding: 1rem;
    border-radius: 1rem;
  }

  .gemini-card h2 {
    font-size: 1.4rem;
  }

  .gemini-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .repeat-text {
    font-size: 1.1rem;
  }

  .modal-content {
    width: 95%;
    padding: 1rem;
    max-height: 95vh;
  }

  .modal-content h2 {
    font-size: 1.4rem;
  }

  .modal-close-btn {
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
  }

  .chat-bubble {
    max-width: 95%;
  }
}

/* Light mode support (optional) */
@media (prefers-color-scheme: light) {
  :root {
    --background-color: #f5f5f5;
    --surface-color: #ffffff;
    --on-surface-color: #212121;
    --on-surface-variant-color: #757575;
    --border-color: #e0e0e0;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background-color);
  color: var(--on-surface-color);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========== GLOBAL HEADER BAR ========== */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-left {
  flex: 1;
}

.test-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--on-surface-color);
  letter-spacing: 0.5px;
}

.header-center {
  flex: 1;
  text-align: center;
}

.progress-indicator {
  font-size: 0.95rem;
  color: var(--primary-color);
  font-weight: 500;
}

.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
}

.timer-display {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--warning-color);
  min-width: 60px;
  text-align: right;
}

.timer-display.hidden {
  display: none;
}

.connection-status {
  display: none;
}

/* ========== MAIN CONTENT ========== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.content-wrapper {
  width: 100%;
  max-width: 900px;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== START SCREEN ========== */
.gemini-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease-in-out;
}

.gemini-card h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.gemini-card p {
  color: var(--on-surface-variant-color);
  line-height: 1.7;
  font-size: 1rem;
}

.gemini-button-container {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.gemini-button {
  background-color: var(--primary-color);
  color: var(--background-color);
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(137, 177, 247, 0.3);
}

.gemini-button:hover {
  background-color: #a9c7f9;
  box-shadow: 0 6px 16px rgba(137, 177, 247, 0.5);
  transform: translateY(-2px);
}

.gemini-button:active {
  transform: translateY(0);
}

.gemini-button.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.gemini-button.secondary:hover {
  background-color: rgba(137, 177, 247, 0.1);
  border-color: var(--primary-color);
}

/* Navigation Buttons */
.navigation-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border-top: 1px solid var(--outline-color);
}

.navigation-buttons.hidden {
  display: none !important;
}

/* ========== TEST SECTION ========== */
.test-section {
  display: flex !important;
  flex-direction: column;
  gap: 2rem;
}

.test-section.hidden {
  display: none !important;
}

/* ========== INTERACTION PANEL ========== */
.interaction-panel {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  min-height: 300px;
  position: relative;
}

/* ========== PHASE CONTAINERS ========== */
.phase-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.phase-container.hidden {
  display: none;
}

.phase-label {
  font-size: 1.2rem;
  color: var(--on-surface-variant-color);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ========== WAVEFORM VISUALIZER (Listening Phase) ========== */
.waveform-visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 80px;
  width: 100%;
  margin: 1rem 0;
}

.waveform-bar {
  width: 6px;
  background: linear-gradient(180deg, var(--primary-color), #4285f4);
  border-radius: 3px;
  animation: waveform-animate 0.8s ease-in-out infinite;
}

.waveform-bar:nth-child(1) {
  height: 20px;
  animation-delay: 0s;
}

.waveform-bar:nth-child(2) {
  height: 40px;
  animation-delay: 0.1s;
}

.waveform-bar:nth-child(3) {
  height: 60px;
  animation-delay: 0.2s;
}

.waveform-bar:nth-child(4) {
  height: 70px;
  animation-delay: 0.3s;
}

.waveform-bar:nth-child(5) {
  height: 60px;
  animation-delay: 0.4s;
}

.waveform-bar:nth-child(6) {
  height: 40px;
  animation-delay: 0.5s;
}

.waveform-bar:nth-child(7) {
  height: 20px;
  animation-delay: 0.6s;
}

@keyframes waveform-animate {

  0%,
  100% {
    height: 15px;
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* ========== MICROPHONE SECTION (Speaking Phase) ========== */
.microphone-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.mic-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(137, 177, 247, 0.2);
}

.mic-icon.inactive {
  background-color: var(--surface-color);
  border: 2px solid var(--border-color);
  color: var(--on-surface-variant-color);
  opacity: 0.5;
}

.mic-icon.active {
  background: radial-gradient(circle, #ff4444, #cc0000);
  color: white;
  animation: mic-pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(255, 68, 68, 0.6);
  border: 2px solid #ff4444;
}

@keyframes mic-pulse {

  0%,
  100% {
    box-shadow: 0 0 40px rgba(255, 68, 68, 0.6), inset 0 0 20px rgba(255, 68, 68, 0.2);
  }

  50% {
    box-shadow: 0 0 60px rgba(255, 68, 68, 0.8), inset 0 0 30px rgba(255, 68, 68, 0.4);
  }
}

/* ========== RECORDING TIMER ========== */
.recording-timer {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-background {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 4;
}

.ring-progress {
  fill: none;
  stroke: var(--warning-color);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 141.37;
  stroke-dashoffset: 141.37;
  transition: stroke-dashoffset 0.1s linear;
}

.timer-text {
  position: relative;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  z-index: 10;
}

/* ========== BEEP CUE FLASH ========== */
.beep-flash {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  border: 3px solid var(--warning-color);
  animation: beep-flash-animate 0.5s ease-out;
}

.beep-flash.hidden {
  display: none;
}

@keyframes beep-flash-animate {
  0% {
    border-color: var(--warning-color);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.8);
    opacity: 1;
  }

  100% {
    border-color: transparent;
    box-shadow: 0 0 60px rgba(255, 152, 0, 0.3);
    opacity: 0;
  }
}

/* ========== SECTION CONTENT ========== */
.section-content {
  width: 100%;
  animation: fadeIn 0.6s ease-in-out;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--on-surface-variant-color);
  line-height: 1.6;
}

/* ========== PART 1: REPEAT ========== */
.repeat-item {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.repeat-text {
  font-size: 1.3rem;
  color: var(--on-surface-color);
  font-weight: 500;
  line-height: 1.8;
  margin: 1rem 0;
}

/* ========== PART 2: SENTENCE BUILDS (JUMBLED) ========== */
.phrase-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-color);
  transition: background-color 0.3s ease;
}

.progress-dot.active {
  background-color: var(--primary-color);
}

.progress-dot.completed {
  background-color: var(--success-color);
}

/* ========== PART 3: CONVERSATION ========== */
.conversation-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.chat-bubble {
  max-width: 80%;
  padding: 1rem 1.5rem;
  border-radius: 1.5rem;
  word-wrap: break-word;
}

.chat-bubble.question {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  align-self: flex-start;
  color: var(--on-surface-color);
}

.chat-bubble.tip {
  background-color: rgba(255, 152, 0, 0.1);
  border-left: 3px solid var(--warning-color);
  align-self: center;
  color: var(--on-surface-variant-color);
  font-size: 0.95rem;
  font-style: italic;
}

/* ========== PART 4: DICTATION ========== */
.dictation-input {
  width: 100%;
  min-height: 120px;
  background-color: var(--background-color);
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  padding: 1rem;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--on-surface-color);
  resize: vertical;
  transition: all 0.3s ease;
}

.dictation-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(137, 177, 247, 0.3);
}

.dictation-input::placeholder {
  color: var(--on-surface-variant-color);
  opacity: 0.6;
}

/* ========== PART 5: FILL IN THE BLANK ========== */
.fill-sentence {
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fill-text {
  color: var(--on-surface-color);
}

.fill-input {
  display: inline-block;
  min-width: 150px;
  padding: 0.5rem 1rem;
  border: none;
  border-bottom: 2px solid var(--primary-color);
  background-color: transparent;
  color: var(--on-surface-color);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
}

.fill-input:focus {
  border-bottom-color: var(--warning-color);
  box-shadow: 0 4px 0 rgba(255, 152, 0, 0.2);
}

/* ========== PART 6: PASSAGE ========== */
.passage-display {
  background-color: var(--background-color);
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--on-surface-color);
  user-select: none;
  -webkit-user-select: none;
}

.passage-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.passage-timer-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--warning-color);
}

.passage-textarea {
  width: 100%;
  min-height: 200px;
  background-color: var(--background-color);
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--on-surface-color);
  resize: vertical;
  transition: all 0.3s ease;
}

.passage-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(137, 177, 247, 0.3);
}

.passage-textarea::placeholder {
  color: var(--on-surface-variant-color);
  opacity: 0.6;
}

/* ========== SUMMARY SCREEN ========== */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.summary-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.summary-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(137, 177, 247, 0.2);
}

.summary-card .score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.summary-card .label {
  font-size: 0.9rem;
  color: var(--on-surface-variant-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.summary-log {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 1rem;
  margin-top: 2rem;
}

.summary-log-item {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.summary-log-item .activity-type {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1rem;
}

.summary-log-item .response-text {
  color: var(--on-surface-variant-color);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Scrollbar styling */
.summary-log::-webkit-scrollbar {
  width: 8px;
}

.summary-log::-webkit-scrollbar-track {
  background: transparent;
}

.summary-log::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 10px;
}

.summary-log::-webkit-scrollbar-thumb:hover {
  background-color: var(--on-surface-variant-color);
}

/* ========== GLOBAL FOOTER BAR ========== */
.footer-bar {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.copyright-text {
  margin: 0;
  color: var(--on-surface-variant-color);
  font-size: 0.95rem;
  text-align: center;
}

.footer-link {
  display: none;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: slideIn 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.modal-content p {
  color: var(--on-surface-variant-color);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.modal-content ul {
  margin: 1rem 0 1rem 1.5rem;
}

.modal-content li {
  color: var(--on-surface-variant-color);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--on-surface-variant-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close-btn:hover {
  color: var(--on-surface-color);
}

/* ========== UTILITY CLASSES ========== */
.hidden {
  display: none !important;
}

.progress-bar-container {
  width: 100%;
  background-color: var(--surface-color);
  border-radius: 50px;
  height: 0.5rem;
  margin: 1rem 0;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--primary-color), #4285f4);
  transition: width 0.5s ease-in-out;
}

.status-message {
  text-align: center;
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.status-message.success {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.status-message.error {
  background-color: rgba(244, 67, 54, 0.1);
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

.status-message.warning {
  background-color: rgba(255, 152, 0, 0.1);
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .header-bar {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .test-name {
    font-size: 1.1rem;
  }

  .header-center {
    order: 3;
    width: 100%;
  }

  .progress-indicator {
    font-size: 0.85rem;
  }

  .interaction-panel {
    padding: 1.5rem;
    min-height: auto;
  }

  .waveform-visualizer {
    height: 60px;
  }

  .mic-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bar {
    gap: 1rem;
  }

  .gemini-card {
    padding: 1.5rem;
  }

  .modal-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-bar {
    padding: 0.5rem;
  }

  .test-name {
    font-size: 1rem;
  }

  .main-content {
    padding: 1rem 0.5rem;
  }

  .interaction-panel {
    padding: 1rem;
    border-radius: 1rem;
  }

  .waveform-visualizer {
    height: 50px;
    gap: 4px;
  }

  .waveform-bar {
    width: 4px;
  }

  .mic-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .recording-timer {
    width: 100px;
    height: 100px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .gemini-card {
    padding: 1rem;
    border-radius: 1rem;
  }

  .gemini-button {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .modal-content {
    width: 95%;
    padding: 1rem;
  }
}

/* ========== UTILITIES ========== */
.hidden {
  display: none !important;
}

/* ========== LOADING SPINNER ========== */
/* From Uiverse.io by Ashon-G */
.loader {
  --hue: 210;
  --size: 100px;
  --border: 10px;
  --speed: 1s;
  --blur: var(--border);
  margin: 2rem auto;
  /* Center it */
  position: relative;
  /* Fix position relative to container */
  display: block;
}

.loader {
  width: var(--border);
  aspect-ratio: 1;
  background: white;
  border-radius: 50%;
  /* position: absolute;  <-- Removed absolute to flow in container, handled by transform */
  position: relative;
  --y: calc((var(--size) * -0.5) + (var(--border) * 0.5));
  transform: rotate(0deg) translateY(var(--y));
  animation: spin var(--speed) infinite linear;
}

.loader::before {
  content: "";
  position: absolute;
  inset: calc(var(--border) * -0.5);
  border-radius: 50%;
  background: white;
  filter: blur(var(--blur));
  z-index: -1;
}

.loader::after {
  content: "";
  width: var(--size);
  aspect-ratio: 1;
  position: absolute;
  top: 0%;
  left: 50%;
  translate: -50% 0;
  background: conic-gradient(white,
      hsl(var(--hue), 100%, 70%),
      hsl(var(--hue), 100%, 10%),
      transparent 65%);
  border-radius: 50%;
  mask: radial-gradient(transparent calc(((var(--size) * 0.5) - var(--border)) - 1px),
      white calc((var(--size) * 0.5) - var(--border)));
}

@keyframes spin {
  to {
    transform: rotate(-360deg) translateY(var(--y));
  }
}

.gradient-text-glow {
  background: linear-gradient(90deg, #ffffff, var(--primary-color), #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 3s linear infinite;
  filter: drop-shadow(0 0 8px rgba(137, 177, 247, 0.6));
  font-weight: 800;
  letter-spacing: 1px;
}

@keyframes textShine {
  to {
    background-position: 200% center;
  }
}

/* ========== INSTRUCTION SCREEN ========== */
.instruction-screen {
  text-align: center;
  width: 100%;
  animation: fadeIn 0.4s ease-in-out;
}

.instruction-content {
  max-width: 600px;
  margin: 0 auto;
}

.instruction-content .start-screen-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.instruction-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--on-surface-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.instruction-content p {
  color: var(--on-surface-variant-color);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.example-box {
  background: rgba(137, 177, 247, 0.1);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  text-align: left;
  border: 1px solid rgba(137, 177, 247, 0.2);
}

.example-box h4 {
  color: var(--primary-light);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.example-box p {
  font-style: italic;
  color: var(--on-surface-color);
  margin-bottom: 0 !important;
}