/* Reset og base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden; /* Forhindrer horisontal scroll på hele siden */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
  overflow-x: hidden; /* Forhindrer horisontal scroll på body */
  word-wrap: break-word; /* Bryder lange ord */
  -webkit-text-size-adjust: 100%; /* Forhindrer automatisk font-størrelse justering på iOS */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1); /* Mindre aggressiv tap highlight */
}

/* Global paragraph size */
p {
 
}

.container_bot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden; /* Forhindrer overflow på container niveau */
}

/* Header */
.header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Skjul topbanneret */
.header {
  display: none;
}

/* App Title (optional top banner) */
.app-title-container {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  padding: 1.5rem 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.app-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
  color: white;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.logo p {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 300;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main_bot {
  min-height: 100vh;
}

/* Performance Dashboard Mini - Small and discrete */
.performance-dashboard-mini {
  background: #f1f5f9;
  border-radius: 3px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #64748b;
}

.metric-mini {
  margin: 0 1rem;
  font-weight: 500;
}

.metric-mini span {
  color: #1e3a8a;
  font-weight: 600;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 1rem;
  display: none;
}

.subtitle {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  display: none;
}

/* Skjul opgavebeskrivelse under titelområdet */
.task-description {
  display: none;
}

/* Layout Container */
.layout-container {
  display: grid;
  grid-template-columns: minmax(0, 65fr) minmax(300px, 35fr);
  gap: 2rem;
  align-items: start;
}

/* Status Card */
.status-card {
  background: white;
  border-radius: 3px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.status-card h3 {
  color: #1e40af;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.status-label {
  font-weight: 600;
  color: #64748b;
}

.status-value {
  background: #1e40af;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}

.status-bar {
  flex: 1;
  height: 16px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-right: 1rem;
}

.status-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
  width: 20%;
  transition: width 0.5s ease;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Chat Container */
.chat-container {
  background: white;
  border-radius: 3px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  overflow-x: hidden; /* Forhindrer horisontal overflow */
  word-wrap: break-word; /* Bryder lange ord */
  position: relative; /* For at audio overlay positionerer sig korrekt */
}

.chat-header {
  margin-bottom: 2rem;
  text-align: left;
  position: relative;
}

.chat-header h4 {
  font-size: 1rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
  padding: 1rem;
}

.chat-header p {
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
}

.mogens-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 560px);
  height: clamp(360px, 52vh, 640px);
  margin: 1.5rem auto;
  overflow: hidden;
  background: #f8fafc;
  border-radius: 3px;
}

.mogens-portrait {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  object-fit: contain;
  object-position: center center;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 1;
  transform: scale(1.2);
  transform-origin: center center;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  max-width: 100%;
  display: block;
  margin: 0;
}

/* Status overlay i bunden af billedet */
.status-overlay {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  padding: 0 6px;
}

.status-overlay .status-bar {
  height: 28px; /* 75% højere end 16px ≈ 28px */
  background: #E2F5F0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-bottom: 8px;
}

.status-overlay .status-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
  width: 20%;
  transition: width 0.5s ease;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.status-overlay .status-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: #111827;
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mogens-profile {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  /* margin: 2rem 0; */
}

/* Skjul status-info kolonnen og brug info-knap i stedet */
.mogens-status-info {
  display: none;
}

/* Billedsektionen styrer selv bredde/højde, så alle karakterbilleder centreres ens */
.mogens-image {
  flex-shrink: 0;
}

.mogens-status-info h3 {
  color: #1e3a8a;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.mogens-status-info .status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.mogens-status-info .status-label {
  font-weight: 600;
  color: #64748b;
}

.mogens-status-info .status-value {
  background: #1e3a8a;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}

.mogens-status-info .status-bar {
  flex: 1;
  height: 16px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  min-width: 200px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mogens-status-info .status-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
  width: 20%;
  transition: width 0.5s ease;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Status-baseret styling for Mogens' område - alle baggrundsfarver fjernet */

.input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.textarea-wrapper {
  flex: 1;
  position: relative;
}

.clear-prompt-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  display: none;
}

.clear-prompt-btn:hover {
  color: #475569;
  background: #f1f5f9;
}

.chat-input {
  width: 100%;
  padding: 0;
  border: 2px solid #e2e8f0;
  border-radius: 3px;
  font-size: 0.85rem;
  transition: border-color 0.3s ease;
  resize: none;
  overflow: hidden;
  line-height: 1.5;
  min-height: 52px;
  max-height: calc(0.85rem * 1.5 * 3);
  overflow-y: auto;
  font-family: inherit;
}

.chat-input:focus {
  outline: none;
  border-color: #1e3a8a;
}

.mic-button {
  background: #059669;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-button:hover {
  background: #047857;
  transform: translateY(-2px);
}

.mic-button.recording {
  background: #dc2626;
  animation: pulse 1.5s infinite;
}

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

.send-button {
  background: #1e3a8a;
  color: white;
  border: none;
  padding: 0 2rem;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.send-button:hover {
  background: #1e40af;
  transform: translateY(-2px);
}

.send-button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.chat-input:disabled {
  background: #f1f5f9;
  cursor: not-allowed;
  opacity: 0.7;
}

.mic-button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Chat Messages */
.chat-messages {
  background: #f8fafc;
  border-radius: 3px;
  padding: 1.5rem;
  min-height: 200px;
  max-height: 500px;
  border: 1px solid #e2e8f0;
  white-space: pre-wrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-y: auto;
  overflow-x: hidden; /* Forhindrer horisontal scroll */
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
  word-wrap: break-word; /* Bryder lange ord */
  word-break: break-word; /* Bryder lange ord på tværs */
}

.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.audio-player {
  width: 100%;
  margin-top: 1rem;
}

/* Advice Box - Fixed til højre */
.advice-box {
  background: white;
  border-radius: 3px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  position: sticky;
  top: 1.9rem;
  height: fit-content;
  overflow-x: hidden; /* Forhindrer horisontal overflow */
  word-wrap: break-word; /* Bryder lange ord */
}

.advice-box h3 {
  color: #1e3a8a;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.advice-list {
  list-style: none;
  counter-reset: advice-counter;
}

.advice-list li {
  counter-increment: advice-counter;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  padding-left: 3rem;
}

.advice-list li:last-child {
  border-bottom: none;
}

.advice-list li::before {
  content: counter(advice-counter);
  position: absolute;
  left: 0;
  top: .9rem;
  /* background: #1e3a8a; */
  /* color: white; */
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

/* Feedback Box */
.feedback-box {
  /* background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); */
  border-radius: 3px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  margin-top: 1.5rem;
  height: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feedback-box h3 {
  color: #1e3a8a;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.feedback-content {
  min-height: 100px;
}

.feedback-placeholder {
  color: #94a3b8;
  font-style: italic;
  text-align: center;
  margin-top: 2rem;
}

.feedback-evaluation {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-radius: 3px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feedback-score {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.score-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.score-excellent { background: #059669; }
.score-good { background: #10b981; }
.score-average { background: #f59e0b; }
.score-poor { background: #ef4444; }

.feedback-details {
  color: #374151;
  line-height: 1.6;
}

/* Score kugler i dialog */
.score-bubble {
  display: inline-block;
  width: 24px;
  height: 24px;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 8px;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.score-bubble.clickable {
  cursor: pointer;
}

.score-bubble.clickable:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.score-bubble.active {
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.5);
  transform: scale(1.1);
}

/* Markering af brugerens tekst */
.user-message-highlighted {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
  border-left: 3px solid #1e3a8a;
  margin: 0.25rem 0;
  box-shadow: 0 2px 4px rgba(30, 58, 138, 0.15);
  transition: all 0.3s ease;
}

.score-bubble.loading {
  background: #94a3b8;
  animation: pulse 1.5s infinite;
}

.score-bubble.score-poor {
  background: #ef4444; /* Rød for 1-3 */
}

.score-bubble.score-average {
  background: #f59e0b; /* Orange for 4-5 */
}

.score-bubble.score-good {
  background: #10b981; /* Grøn for 6-7 */
}

.score-bubble.score-excellent {
  background: #059669; /* Mørkegrøn for 8-10 */
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Footer */
.footer {
  background: #1e293b;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer p {
  opacity: 0.8;
}

/* Audio Control Overlay */
.audio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(2px);
  border-radius: 3px;
  overflow-y: auto;
}

/* Skjul overlayet permanent når det er blevet brugt */
.audio-overlay.used {
  display: none !important;
}

.audio-overlay-content {
  background: rgba(255, 255, 255, 0.97);
  padding: 2.5rem 3rem;
  border-radius: 6px;
  text-align: left;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 680px;
  width: 92%;
  margin: 1.5rem auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.audio-overlay-content h3 {
  color: #1e3a8a;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.intro-instruction {
  font-size: 15px;
  line-height: 1.65;
  color: #1f2937;
}

.intro-instruction p {
  margin: 0 0 0.8rem 0;
}

.intro-instruction ul {
  margin: 0.2rem 0 0.9rem 1.4rem;
  padding: 0;
}

.intro-instruction li {
  margin-bottom: 0.3rem;
}

.start-audio-btn {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  border: none;
  padding: 1rem 3rem;
  border-radius: 3px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.start-audio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.browser-warning {
  color: #dc2626;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .layout-container {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .container_bot {
    max-width: 100%;
    padding: 0 12px;
  }
  
  /* Sørg for at toppen (header) fylder hele bredden på mobil */
  .header,
  .header .container_bot {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .advice-box {
    position: static;
    order: 2; /* Placeres efter chat-container */
    margin-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  /* Global font size reduction */
  body {
    font-size: 14px;
  }
  
  /* App title mobil */
  .app-title-container {
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
  }
  
  .app-title {
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  .header-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .nav {
    gap: 0.5rem;
  }
  
  /* Page header */
  .page-header {
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
  }
  
  .page-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }
  
  .page-header .subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  
  .page-header .task-description {
    font-size: 0.85rem;
    margin-bottom: 0;
  }
  
  .input-group {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .status-indicator {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .container_bot {
    padding: 0 12px;
  }
  
  .performance-dashboard-mini {
    font-size: 0.7rem;
  }
  
  .metric-mini {
    margin: 0 0.5rem;
  }
  
  /* Chat container mobil */
  .chat-container {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  /* Chat header */
  .chat-header {
    padding: 0.75rem;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  /* Info button */
  .info-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    min-width: 80px;
  }
  
  /* Mogens profil */
  .mogens-image {
    width: 100%;
    height: clamp(300px, 46vh, 480px);
    margin: 0.75rem auto;
  }
  
  .mogens-portrait {
    width: 100%;
    max-width: 100%;
    height: 100%;
  }
  
  .mogens-profile {
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
  }
  
  .mogens-status-info h4 {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  /* Status bar mobil */
  .status-bar {
    height: 20px;
  }
  
  .status-text {
    font-size: 0.75rem;
  }
  
  /* Input område */
  .mic-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 8px;
  }
  
  .chat-input {
    font-size: 14px;
    padding: 0.65rem;
  }
  
  .send-button {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Chat messages */
  .chat-messages {
    padding: 0.5rem;
    max-height: 350px;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* Score bubbles */
  .score-bubble {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  
  /* Advice box */
  .advice-box {
    padding: 1rem;
    margin-top: 0.5rem;
  }
  
  .advice-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .advice-list {
    font-size: 0.85rem;
  }
  
  .advice-list li {
    margin-bottom: 0.4rem;
    padding-left: 2rem;
  }
  
  /* Feedback box */
  .feedback-box {
    padding: 0.85rem;
    margin-top: 0.75rem;
  }
  
  .feedback-box h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .feedback-content {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  /* Audio overlay mobil */
  .audio-overlay-content {
    padding: 2rem;
    max-width: 90%;
  }
  
  .audio-overlay-content h3 {
    font-size: 1.3rem;
  }
  
  .intro-instruction {
    font-size: 14px;
  }
  
  .start-audio-btn {
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }
  
  /* Info modal mobil */
  .info-modal-content {
    width: 90%;
    max-height: 85vh;
    padding: 1.25rem;
  }
  
  .info-modal-content h3 {
    font-size: 1.2rem;
  }
  
  .info-modal-content h4 {
    font-size: 1rem;
  }
  
  .info-list {
    font-size: 0.85rem;
  }
  
  .advice-box h3 {
    font-size: 1.3rem;
  }
  
  .advice-list li {
    padding-left: 2.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .feedback-box {
    padding: 1rem;
  }
  
  .feedback-box h3 {
    font-size: 1.1rem;
  }
  
  .score-circle {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  /* Statusbar skal fylde hele bredden af image containeren på mobile */
  .status-overlay {
    width: calc(100% - 16px);
  }
}

/* Ekstra små skærme (under 480px) */
@media (max-width: 480px) {
  /* Meget kompakt layout */
  body {
    font-size: 13px;
  }
  
  .container_bot {
    padding: 0 8px;
  }
  
  /* App title meget lille */
  .app-title-container {
    padding: 0.6rem 0;
    margin-bottom: 0.3rem;
  }
  
  .app-title {
    font-size: 1.3rem;
    font-weight: 700;
  }
  
  /* Page header kompakt */
  .page-header {
    padding: 0.3rem 0;
    margin-bottom: 0.3rem;
  }
  
  .page-header h2 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
  }
  
  .page-header .subtitle,
  .page-header .task-description {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
  }
  
  /* Layout container minimal gap */
  .layout-container {
    gap: 0.3rem;
  }
  
  /* Chat container kompakt */
  .chat-container {
    padding: 0.4rem;
    border-radius: 3px;
    margin-bottom: 0.3rem;
  }
  
  .chat-header {
    padding: 0.5rem;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
  }
  
  /* Info button mindre */
  .info-button {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    min-width: 70px;
  }
  
  /* Profil kompakt */
  .mogens-profile {
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
  }
  
  /* Billede kompakt, men stadig centreret og ubeskåret */
  .mogens-image {
    height: clamp(260px, 44vh, 380px);
  }
  
  .mogens-status-info h4 {
    font-size: 0.8rem;
    line-height: 1.2;
  }
  
  /* Input område kompakt */
  .input-group {
    margin-bottom: 0.75rem;
  }
  
  .mic-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  
  .chat-input {
    font-size: 13px;
    padding: 0.5rem;
  }
  
  .send-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  /* Chat messages kompakt */
  .chat-messages {
    padding: 0.4rem;
    max-height: 280px;
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  /* Score bubbles mindre */
  .score-bubble {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
  
  /* Advice box kompakt */
  .advice-box {
    padding: 0.6rem;
    border-radius: 3px;
    margin-top: 0.3rem;
  }
  
  .advice-list li {
    margin-bottom: 0.3rem;
    padding-left: 1.5rem;
  }
  
  /* Feedback box kompakt */
  .feedback-box {
    padding: 0.6rem;
    margin-top: 0.5rem;
  }
  
  .advice-box h3 {
    font-size: 1.2rem;
  }
  
  .advice-list li {
    padding-left: 2rem;
    font-size: 0.85rem;
  }
  
  .feedback-box {
    padding: 0.75rem;
  }
  
  .score-circle {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .page-header h2 {
    font-size: 1.8rem;
  }
  
  .input-group {
    gap: 0.5rem;
  }
  
  .send-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Info Button and Modal */
.chat-header .info-button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 8px 12px;
  min-width: 60px; /* 200% af 30px i effektiv bredde */
  min-height: 60px; /* 200% af 30px i effektiv højde */
  background: rgba(0, 123, 255, 0.8);
  border: 2px solid white;
  border-radius: 3px;
  color: white;
  font-size: 20px; /* 200% af 16px ≈ større ikon/tekst */
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.info-button:hover {
  background: rgba(0, 123, 255, 1);
  transform: scale(1.1);
}

.info-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.info-modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 3px;
  width: 95%;
  max-width: 690px;
  max-height: 70vh;
  overflow-y: auto;
  position: relative;
}

/* Ensret paragrafstørrelse i info-popup med generelle p-styles */
.info-modal-content p {
  font-size: 12px;
}

.info-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}

.info-modal-close:hover {
  color: #000;
}

.info-modal h3 {
  color: #333;
  margin-bottom: 15px;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

.info-section {
  margin-bottom: 20px;
}

.info-section h4 {
  color: #007bff;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 3px;
  margin: 4px 0;
}

.info-list li:last-child {
  border-bottom: none;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
