html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

.training-start-page {
  background-color: #f5f8f6;
  border-radius: 0.85rem;
  padding-top: 0.5rem;
}

.chat-window-compact .chat-bubble {
  padding: 0.2rem 0.65rem;
  line-height: 1.15;
}

.chat-window-compact .chat-bubble-text {
  margin: 0;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
}

body.site-layout {
  margin: 0;
  min-height: 100vh;
  background-color: #f5f8f6;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f8f6;
}

.site-content {
  flex: 1;
  padding-top: 1rem;
}

body.site-layout .footer {
  position: static;
  margin-top: auto;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
  background-color: #f5f8f6;
}

body.admin-layout {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
}

.admin-sidebar {
  width: 280px;
  min-width: 280px;
  min-height: 100vh;
  background: linear-gradient(180deg, #123726 0%, #0f2f20 100%);
  color: #e7f5ed;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.admin-brand-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.admin-nav .nav-link {
  color: rgba(231, 245, 237, 0.9);
  border-radius: 0.7rem;
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-nav .nav-link:hover {
  color: #ffffff;
  background-color: rgba(54, 179, 37, 0.2);
}

.admin-nav .nav-link.active {
  background-color: #36b325;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(54, 179, 37, 0.34);
}

.admin-nav-icon {
  display: inline-flex;
  line-height: 1;
}

.admin-content {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  height: 100vh;
  overflow-y: auto;
  background-color: #f5f8f6;
}

.admin-main-content {
  min-height: 0;
}

.admin-footer-bar {
  margin-top: auto;
  z-index: 10;
}

.admin-page-header h1 {
  color: #123726;
}

.admin-user-block {
  border-top-color: rgba(255, 255, 255, 0.18) !important;
}

.admin-user {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background-color: #36b325;
  color: #ffffff;
  font-weight: 700;
}

.admin-user-text .fw-semibold {
  color: #ffffff;
}

.admin-user-status {
  color: rgba(231, 245, 237, 0.8);
}

.admin-table-wrap {
  border: 1px solid #d9e6dd;
  border-radius: 0.85rem;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(18, 55, 38, 0.06);
  padding: 1.25rem;
}

.admin-metric-widget {
  border: 1px solid #d9e6dd;
  border-radius: 0.85rem;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(18, 55, 38, 0.06);
  padding: 1rem 1.1rem;
}

.admin-metric-widget .fs-4 {
  color: #123726;
}

.admin-table-wrap .dataTables_wrapper .row {
  margin-left: 0;
  margin-right: 0;
}

.admin-table-wrap .dataTables_wrapper .dataTables_length,
.admin-table-wrap .dataTables_wrapper .dataTables_filter,
.admin-table-wrap .dataTables_wrapper .dataTables_info,
.admin-table-wrap .dataTables_wrapper .dataTables_paginate {
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.admin-table-wrap .dataTables_wrapper .dataTables_filter,
.admin-table-wrap .dataTables_wrapper .dataTables_length {
  margin-bottom: 0.8rem;
}

.admin-table-wrap .dataTables_wrapper .dataTables_info,
.admin-table-wrap .dataTables_wrapper .dataTables_paginate {
  margin-top: 0.9rem;
}

.admin-table thead th {
  color: #123726;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom-width: 1px;
  border-bottom-color: #d9e6dd;
  background-color: #f4faf6;
}

.admin-table tbody td {
  border-color: #edf4ef;
}

.admin-table tbody tr:hover {
  background-color: #f7fcf8;
}

.admin-overview-col-fixed,
.admin-overview-cell-fixed {
  width: 132px;
  min-width: 132px;
}

.admin-overview-cell-fixed {
  text-align: center;
}

.admin-overview-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-overview-chip-status {
  width: 92px;
}

.admin-overview-chip-score {
  width: 52px;
}

.admin-overview-action-btn {
  width: 108px;
}

.admin-iframe-modal {
  width: 100%;
  min-height: 74vh;
  border: 0;
  background-color: #fff;
}

.admin-iframe-modal-compact {
  min-height: 360px;
  height: 380px;
}

body.modal-frame-layout {
  margin: 0;
  overflow: hidden;
}

body.modal-frame-layout .container-fluid {
  padding: 0 !important;
}

body.modal-frame-layout form {
  margin: 0;
  padding: 1rem;
}

.admin-score-badge-orange {
  background-color: #fd7e14;
  color: #ffffff;
}

.participant-edit-modal-dialog {
  max-width: 640px;
}

.admin-modal-header {
  background-color: #f4faf6;
  border-bottom-color: #d9e6dd;
}

.admin-modal-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #123726;
}

.admin-modal-title-icon {
  display: inline-flex;
  line-height: 1;
  color: #000;
}

.admin-modal-title-icon svg {
  display: block;
}

.chat-window {
  height: 55vh;
  min-height: 320px;
  overflow-y: auto;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.3;
}

body.admin-layout .chat-bubble .chat-bubble-text {
  white-space: pre-line;
}

body.admin-layout .chat-window-compact {
  gap: 0.25rem;
}

body.admin-layout .chat-window-compact .chat-bubble {
  white-space: normal;
  padding: 12px;
  line-height: 1.15;
}

.chat-bubble-user {
  align-self: flex-end;
  background-color: #36b325;
  color: #fff;
  border-bottom-right-radius: 0.2rem;
}

.chat-bubble-assistant {
  align-self: flex-start;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  color: #212529;
  border-bottom-left-radius: 0.2rem;
}

.chat-bubble-error {
  background-color: #f8d7da;
  border-color: #f5c2c7;
  color: #842029;
}

.preserve-whitespace {
  white-space: pre-wrap;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* Microfoon- en instellingenknop op het trainingsscherm (Views/Training/Chat.cshtml): even
   groot en rond. Bewust als CSS-klasse i.p.v. een inline style="width:...;height:..."
   attribuut: de Content-Security-Policy (style-src 'self', zie SecurityHeadersMiddleware.cs)
   staat geen inline style-attributen toe, die worden door de browser stilzwijgend genegeerd. */
.voice-circle-btn {
  width: 3.75rem;
  height: 3.75rem;
}

/* Niveaumeter in de microfooninstellingen-modal: dunnere balk dan Bootstraps standaard
   .progress-hoogte. Zelfde reden als hierboven: via een ID-selector i.p.v. inline style. */
#mic-device-meter {
  height: 6px;
}
