*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Open Sans", Arial, sans-serif;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  background: linear-gradient(
    180deg,
    #f8faff 0%,
    #f5f8fd 55%,
    #f3f6ff 100%
  );
  color: #222;
}

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ===== APP LAYOUT ===== */

.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 24px 18px;
  box-sizing: border-box;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08);
  overflow-y: auto;
  position: sticky;
  top: 0;
  align-self: flex-start;
  flex-shrink: 0;
}

.sidebar-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(2px);
}

.sidebar-link.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.sidebar-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.logout-btn {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.container {
  flex: 1;
  max-width: 1400px;
  margin: 40px auto;
  padding: 24px;
  background: transparent;
  /* border-radius: 10px; */
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); */
}

h1 {
  margin-top: 0;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 12px; 
  font-size: 0.875em !important;
  box-sizing: border-box;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  font-family: inherit;
}

input {
  width: 100%;
  padding: 12px 12px !important; 
  font-size: 0.875em !important;
  box-sizing: border-box;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

.form-control,
.form-select {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 0.875rem;
  font-family: inherit;
  color: #495057; 
}

.br-6 {
  border-radius: 6px !important;
}

button:not(.btn) {
  padding: 10px 18px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

button:not(.btn):disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.btn {
  border-radius: 10px;
  font-weight: 400;
  padding: 10px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: 
    background 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn:disabled,
.btn.disabled {
  pointer-events: auto; 
  cursor: not-allowed;
  opacity: 0.45;
}

.response-section {
  margin-top: 24px;
}

pre {
  background: #f1f5f9;
  padding: 16px;
  border-radius: 6px;
  white-space: pre-wrap;
  min-height: 120px;
  overflow-x: auto;
}

.auth-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== MODAL ===== */

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

.custom-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 16px;
  background: rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.custom-modal .modal-dialog {
  position: relative;
  width: min(92vw, 420px);
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.custom-modal .modal-dialog h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.custom-modal .modal-dialog label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-weight: 600;
}

.custom-modal .modal-dialog input,
.custom-modal .modal-dialog select,
.custom-modal .modal-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 0.35rem;
  font-size: 14px;
  background: #fff;
}

.custom-modal .modal-dialog button {
  margin-top: 0.85rem;
}

.custom-modal .modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.custom-modal .modal-close:hover {
  color: #111827;
  background: transparent;
}

.custom-modal .modal-status {
  margin-top: 1rem;
  min-height: 1.2rem;
  color: #334155;
  font-size: 14px;
}

.hidden {
  display: none !important;
}

/* ===== TABLE ===== */

/* ===== TABLE ===== */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
}

.users-table th,
.users-table td {
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  vertical-align: middle;
}

.users-table th {
  background: #2e3f5a;
  color: #f8fafc;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.users-table th:first-child {
  border-top-left-radius: 8px;
}

.users-table th:last-child {
  border-top-right-radius: 8px;
}

.users-table td {
  color: #1e293b;
  background: #ffffff;
}

.users-table tbody tr {
  cursor: pointer;
  background: #f8fafc;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Uncomment for alternative row colors */
/* .users-table tbody tr:nth-child(even) td {
  background: #f8fafc;
} */

.users-table tbody tr:hover > td {
  background-color: #e9e9e9 !important;
} 

.users-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.users-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.users-table tbody tr:last-child td {
  border-bottom: none;
}


.modal-dialog select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  margin-bottom: 0.35rem;
  font-size: 14px;
  background: #fff;
}

.modal-dialog select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 0.35rem;
  font-size: 14px;
  background: #fff;
}

/* ===== AUTH / LOGIN PAGE ===== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #0f172a;
}

.subtitle {
  margin: 0 0 28px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.5;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-actions button {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #334155;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-actions button:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateX(2px);
}

#loginBtn {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

#loginBtn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

#registerBtn {
  background: #f8fafc;
  color: #334155;
}

#registerBtn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateX(2px);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
  color: #94a3b8;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
}

/* ===== STAGE PAGE ===== */

.stage-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-size: 48px;
  font-weight: bold;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    padding: 16px;
  }

  .sidebar-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: unset;
  }

  .sidebar-footer {
    margin-top: 16px;
    padding-top: 12px;
  }

  .container {
    margin: 20px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .auth-card h1 {
    font-size: 26px;
  }
}


.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.modal-actions-left {
  display: flex;
}

.modal-actions-right {
  display: flex;
  gap: 10px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

#create-scenario .form-actions {
  justify-content: flex-start;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.success-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  transition: 
    background-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.primary-btn:hover,
.secondary-btn:hover,
.danger-btn:hover,
.success-btn:hover {
  opacity: 0.95;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.primary-btn:active,
.secondary-btn:active,
.danger-btn:active {
  transform: translateY(1px);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.danger-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.primary-btn {
  background: #2563eb;
  color: white;
}

.secondary-btn {
  background: #e2e8f0;
  color: #1e293b;
}

.danger-btn {
  background: #dc2626;
  color: white;
}

.danger-btn:hover {
  background: #b91c1c;
}

.success-btn {
  background: #1cb17f;
}


.success-btn:active {
  transform: translateY(1px);
}

.input-error {
  border: 1px solid #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.validation-message {
  margin-top: 10px;
  color: #dc2626;
  font-size: 14px;
}

.validation-list {
  margin: 0;
  padding-left: 18px;
}

.enrollment-clean {
  background-color: #f3f4f6; /* light grey */
}


.enrollment-dirty {
  background-color: #ffffff; /* white */
}

#enrolledStudents {
  transition: background-color 0.2s ease;
  padding-bottom: 24px;
}

.textarea-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}


/* Textarea itself */
#enrolledStudents {
  margin-bottom: 2px; /* tighten gap */
}

.textarea-container {
  position: relative;
}

.textarea-footer {
  position: absolute;
  bottom: 6px;
  right: 10px;
  margin: 0;
  pointer-events: none; /* don’t block typing */
  font-size: 11px;
  color: #9ca3af;
  background: transparent;
  padding: 2px 6px;
  padding-bottom: 5px;
  border-radius: 6px;
}
#cursorLine {
  background: transparent;
  padding: 0;
  font-size: 11px;
  color: #9ca3af;
}

#enrolledStudents.form-control {
  min-height: 220px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 12px 14px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#enrolledStudents.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

#enrolledStudents:focus {
  outline: none; /* removes black browser border */
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.image-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  overflow: visible;
}

.image-thumb-option {
  width: 100px;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  position: relative;
  overflow: visible;   /* important */
  background: #fff;
  z-index: 1;
}

.image-thumb-option img {
  display: block;
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-origin: center center;
}


.image-thumb-option:hover img {
  transform: scale(1.6);
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.image-thumb-option:hover {
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.image-thumb-option.selected {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}


.image-thumb-option.selected {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

/* default state */
.image-thumb-option {
  opacity: 1;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

/* dim everything when selected */
.image-option-grid.has-selection .image-thumb-option {
  opacity: 0.4;
  filter: grayscale(60%);
}

/* selected stays normal */
.image-option-grid.has-selection .image-thumb-option.selected {
  opacity: 1;
  filter: none;
}

/* 🔥 IMPORTANT: hover should override dimming */
.image-option-grid.has-selection .image-thumb-option:hover {
  opacity: 1;
  filter: none;
}


.access-rule-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.access-rule-row .operator-select {
  width: 110px;
}

.access-rule-row .scenario-select {
  min-width: 240px;
  flex: 1;
}

.access-rule-row .rule-label {
  font-size: 0.95rem;
  color: #444;
  min-width: 170px;
}

#accessRulesPreview {
  white-space: normal;
}

.scenario-toggle-btn {
  width: 80px;        
  text-align: center;
}


.confirm-btn {
  width: 110px;       
  text-align: center;
}

.start-btn,
.info-btn,
.feedback-btn {
  margin-right: 0;
}

/* chat room  */

.chat-page {
  min-height: 100vh;
  background: linear-gradient(
    180deg,
    #eef4ff 0%,
    #e9f1ff 55%,
    #e4eeff 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.chat-container {
  width: 100%;
  max-width: 760px;
  height: 84vh;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background: #2563eb;
  color: #fff;
  padding: 14px 18px;
  text-align: center;
}

.chat-header h1 {
  margin: 0;
  font-size: 1.15rem;
}

.chat-header p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.chat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  overflow: hidden;
}

.chat-footer {
  background: #f8fafc;
}

.banner {
  height: 140px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  position: relative;
  flex: 0 0 auto;
}

.service-user-image {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  position: absolute;
  bottom: -48px;
  left: 24px;
  object-fit: cover;
  border: 3px solid #fff;
  background: #fff;
}

.chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 64px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message {
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 80%;
  line-height: 1.45;
  font-size: 0.95rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-box .assistant-message {
  align-self: flex-start;
  margin-right: auto;
  background: transparent;

}

.chat-box .user-message {
  align-self: flex-end;
  margin-left: auto;
  background: #d1fae5;
}

.system-message {
  background: #fef3c7;
  color: #92400e;
  align-self: flex-start;
  margin-right: auto;
  max-width: 90%;
  font-size: 0.85rem;
}

/* TOP ACTION BAR */
.chat-actions-bar {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
  justify-content: center;
}

/* INPUT ROW */
.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 12px;
  align-items: center;
}

/* TEXTAREA */
.chat-input-area textarea {
  flex: 1;
  min-height: 84px;
  max-height: 84px;
  padding: 11px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  resize: none;
  outline: none;
  font: inherit;
  scrollbar-width: thin !important;
  scrollbar-color: #cbd5e1 transparent !important;
  margin-top: 12px;
  overflow-y: auto !important;
}

.chat-input-area textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* BUTTON */
.chat-input-area .btn {
  min-height: 44px;
  border-radius: 14px;
  padding-top: 0px;
  margin-top: 0px;
}

.chat-layout {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
}

/* ===== SIDE ACTION PANEL ===== */

.chat-side-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 12px;
  background: transparent;
  border-radius: 14px;
  /* border: 1px solid #e5e7eb; */
  /* box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08); */
  height: fit-content;
  margin-top: 80px; /* aligns with chat box visually */
}

.chat-side-actions .btn {
  min-width: 110px;
  border-radius: 12px;
  font-weight: 400;
  padding: 10px 12px;
  letter-spacing: 0.2px;
}

/* Softer, more premium button feel */
.chat-side-actions .btn-info {
  background: #0ea5e9;
  border-color: #0ea5e9;
}

.chat-side-actions .btn-warning {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #111;
}

.chat-side-actions .btn-danger {
  background: #ef4444;
  border-color: #ef4444;
}


.chat-container {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
}

/* Header refinement */
.chat-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.chat-header h1 {
  font-size: 1.2rem;
  font-weight: 600;
}

.chat-header p {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Chat area spacing */
.chat-box {
  padding: 70px 18px 18px;
  gap: 10px;
}

.chat-box .chat-placeholder {
  align-self: flex-start;
  margin-right: auto;
}

/* Message refinement */
.message {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
}



/* ===== INPUT AREA ===== */

.chat-input-area {
  padding: 14px;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}


.chat-input-area textarea::-webkit-scrollbar {
  width: 6px;
}

.chat-input-area textarea::-webkit-scrollbar-track {
  margin: 6px 0; /* 👈 prevents touching rounded corners */
  background: transparent;
}

.chat-input-area textarea::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

.chat-input-area textarea::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.chat-input-area textarea::-webkit-scrollbar-button {
  display: none;
  height: 0;
}

/* Submit button more premium */
.chat-input-area .btn {
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .chat-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-side-actions {
    flex-direction: row;
    justify-content: center;
    margin-top: 0;
    order: -1;
  }
}

/* end chat room */


.action-cell {
  min-width: 300px;
}

.roleplay-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

.roleplay-action-btn {
  min-width: 90px;
  padding: 6px 12px;
  white-space: nowrap;
}

.start-btn.roleplay-action-btn {
  width: 120px;
}

.fnt-white{
  color: #fff !important;
}

.fnt-regular{
  font-weight: 400 !important;
}


.room-action-btn {
  width: 120px;
  padding: 6px 12px;
  white-space: nowrap;
  font-weight: 500;
}

.room-action-btn.btn-warning {
  color: #111827;
}

.scenario-info-modal {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
  background: #ffffff;
}

.scenario-info-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;

  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.10),
    rgba(37, 99, 235, 0.04)
  );
}

.scenario-info-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.scenario-info-header .modal-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  color: #0f172a;
}

.scenario-info-close {
  opacity: 0.65;
}

.scenario-info-close:hover {
  opacity: 1;
}

.scenario-info-body {
  padding: 1.75rem;
  background: #f8fafc;
}

.scenario-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.scenario-info-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.scenario-info-text h6 {
  margin: 0 0 0.45rem;
  font-size: 1.0rem;
  font-weight: 600;
  color: #0f172a;
}

/* #infoModalContent {
  margin: 0;
  white-space: pre-wrap;
  font-size: 1rem;
  color: #0f172a;
  line-height: 1.65;

} */

.scenario-info-footer {
  padding: 1rem 1.75rem 1.35rem;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.scenario-info-cancel {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-weight: 650;
  color: #334155;
}

.scenario-info-delete {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-weight: 650;
  color: #334155;
}

.scenario-info-cancel:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-close {
  background: none;
  border: none;
  box-shadow: none;
  opacity: 0.6;
}

.btn-close:hover {
  opacity: 1;
  background: none;
}

.btn-close:focus {
  box-shadow: none;
}

.scenario-info-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.scenario-info-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Container */
#infoModalContent, #infoModalContentAdditional {
  white-space: normal;     
  font-size: 0.95rem;         
  line-height: 1.4;
  color: #1f2937;
  max-height: 400px;    
  overflow-y: auto;
  padding-right: 6px;     
}

/* Optional: smoother scroll feel */
#infoModalContent::-webkit-scrollbar {
  width: 6px;
}

#infoModalContent::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

#infoModalContent::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Each message block */
.transcript-message {
  margin-bottom: 8px;           /* tighter spacing */
  padding: 6px 8px;
  border-radius: 6px;
}

/* Remove big gaps */
.transcript-message p {
  margin: 2px 0 0 0;
}

/* Role label */
.transcript-message strong {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  margin: 0;                   /* remove indentation */
  padding: 0;
  color: #6b7280;
}

/* User vs assistant styling */
.transcript-user {
  background: #f3fff9;
} 

.transcript-assistant {
  background: #ffffff;
}

/* Text */
.transcript-message p {
  font-size: 13px;
  color: #111827;
}

.fixed-width-btn {
  width: 110px;
  text-align: center;
}

.fixed-width-btn-120 {
  width: 120px;
  text-align: center;
}

.fixed-width-btn-130 {
  width: 130px;
  text-align: center;
}

#activityFeedbackTextarea {
  white-space: normal;
  font-size: 13px;
  line-height: 1.4;
  color: #1f2937;

  width: 100%;
  height: 220px;

  border: none;
  outline: none;

  padding: 12px 14px;
  box-sizing: border-box;

  resize: none;             
  overflow-y: auto;
}

/* Scrollbar matches your existing modal */
#activityFeedbackTextarea::-webkit-scrollbar {
  width: 6px;
}

#activityFeedbackTextarea::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

#activityFeedbackTextarea::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

#activityFeedbackModal .modal-content {
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden; /* ensures textarea flush edges */
}

#activityFeedbackModal .modal-header {
  padding: 0.75rem 1rem;
}

#activityFeedbackModal .modal-footer {
  padding: 0.75rem 1rem;
}

/* admin sections separtor*/
.response-section + .response-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}


.current-secret-row {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.9rem;
  color: #475569;
}

.current-secret-label {
  font-weight: 600;
  margin-right: 0.35rem;
}

.current-secret-value {
  font-family: monospace;
  color: #0f172a;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #475569;
}

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: #dc2626;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.dashboard-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.card-title {
  font-size: 14px;
  color: #64748b; /* muted */
  margin-bottom: 8px;
}

.card-value {
  font-size: 32px;
  font-weight: 600;
  color: #0f172a;
}

.icon-cell {
  text-align: center;
  width: 44px;
  vertical-align: middle;
}

.icon-cell i {
  font-size: 1.25rem;
}

.locked-row td {
  background: rgb(255, 242, 242) !important;
}

.personalisation-section {
  margin-top: 1.5rem;
}

.upload-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  cursor: pointer;
  background: #f8fafc;
  margin-bottom: 1rem;
}

.upload-box:hover {
  background: #eef2ff;
}

.image-thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


.thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.delete-thumb-btn {
  position: absolute;
  top: 6px;
  right: 6px;

  background: rgba(0, 0, 0, 0.15) !important;
  border: none;
  padding: 0;

  color: rgba(255, 255, 255, 0.55);
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
}


.image-thumb-option-tenant {
  height: 100px;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  position: relative;

  overflow: hidden;   /* ✅ REQUIRED for clean zoom */
  background: #fff;
  z-index: 1;

  transition: transform 0.2s ease;
}

.image-thumb-option-tenant img {
  display: block;
  width: auto;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;

  transition: transform 0.25s ease;
  transform-origin: center;
}

/* ✅ Zoom */
.image-thumb-option-tenant:hover img {
  transform: scale(1.08);
}

.delete-thumb-btn {
  position: absolute;
  top: 6px;
  right: 6px;

  background: transparent;
  border: none;

  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;

  opacity: 0;                /* hidden by default */
  pointer-events: none;      /* prevents accidental clicks when hidden */
  
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Show ONLY when hovering the thumbnail */
.image-thumb-option-tenant:hover .delete-thumb-btn {
  opacity: 1;
  pointer-events: auto;      /* clickable only when visible */
}



.image-thumb-option-tenant:hover {
  transform: translateY(-2px);
}

/* Hover effect */
.delete-thumb-btn:hover {
  color: rgba(255, 255, 255, 1);
  background: rgba(0, 0, 0, 0.25) !important;
}

.image-thumb-option-tenant {
  position: relative; /* required */
}

.banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.room-body {
  background: linear-gradient(
    180deg,
    #eef4ff 0%,
    #e9f1ff 55%,
    #e4eeff 100%
  );
}

.table-btn {
  font-size: 0.85rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  line-height: 1.2;
}

.room-btn {
  border: 1px solid #d1d5db !important;
  border-radius: 999px !important;
  padding: 0.55rem 1.25rem;
  font-weight: 500 !important;
  color: #334155;
  background: #f1f5f9 !important;
}

.room-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #253142;
}

.bg-btn-white{
  background: white;
}

.table-btn i {
  font-size: 0.8rem;
}

.bg-purple {
  background: #7c3aed !important;
  color: #fff;
}

.badge-light-grey {
  background-color: #e9ecef; /* Bootstrap light grey */
  color: #495057;            /* readable dark text */
  border: 1px solid #dee2e6; /* subtle definition */
}

#micBtn {
  min-width: 44px;
}


/* Admin settings section */
.settings-page-header {
  max-width: 900px;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

.page-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
}

.settings-card {
  border: 1px solid #eef0f3 !important;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04) !important;
}

.settings-card .card-body {
  padding: 1.5rem;
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f1f3f5;
}

.settings-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f3f6ff;
  color: #0d6efd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.settings-card-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0.15rem 0 0;
  font-weight: 400;
}

.settings-card .form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.settings-card .form-text {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 400;
}

.settings-card textarea,
.settings-card input,
.settings-card select {
  border-radius: 10px;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.settings-status {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.75rem;
  margin-bottom: 0;
}


.current-key-box {
  padding: 14px 12px; 
  border-radius: 6px !important;
  font-size: 0.875rem; 
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.alert.current-key-box {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  border-radius: 6px !important;
  line-height: 1.5;
  border-radius: 6px !important;
}

.chat-composer-shell {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px 6px;
  box-sizing: border-box;
}



.chat-composer {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.chat-composer-input {
  width: 100%;
  min-height: 104px;
  max-height: 200px;

  resize: none;
  overflow-y: auto;

  box-sizing: border-box;

  padding: 12px 72px 58px 18px !important;

  border: 1px solid #d9d9e3;
  border-radius: 24px;

  background: #fff;
  color: #111;

  font-size: 1rem;
  line-height: 1.45;

  outline: none;

  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);

  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}


.chat-composer-input:focus {
  border-color: #c7c7d1;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.09);
}

.chat-composer-input::placeholder {
  color: #8e8ea0;
}

.chat-composer-action {
  position: absolute;
  right: 14px;
  bottom: 12px;

  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;

  border-radius: 50%;
  border: none;

  background: #111;
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  margin: 0;

  font-size: 1rem;
  line-height: 1;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  transition:
    background-color 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease,
    opacity 120ms ease;
}

.chat-composer-action:hover {
  background: #000;
  transform: scale(1.04);
}

.chat-composer-action:active {
  transform: scale(0.96);
}

.chat-composer-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.chat-composer-action.d-none {
  display: none !important;
}

.send-play-icon {
  display: inline-block;
  transform: translateX(1px);
  line-height: 1;
  font-size: 0.9rem;
}

.chat-composer-input.form-control {
  min-height: 96px !important;
  padding: 18px 64px 46px 18px !important;
  border-radius: 24px !important;
}

#micBtn.chat-composer-action,
#submitBtn.chat-composer-action {
  position: absolute;
  right: 12px;
  bottom: 32px;
  z-index: 2;

  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  aspect-ratio: 1 / 1;

  padding: 0 !important;
  margin: 0 !important;

  border: none !important;
  border-radius: 9999px !important;

  background-color: #2e2e2e !important;
  color: #fff !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 1rem;
  line-height: 1;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  box-shadow: none;

  transition:
    background-color 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease,
    opacity 120ms ease;
}

#micBtn.chat-composer-action:hover,
#submitBtn.chat-composer-action:hover {
  background-color: #2e2e2e !important;
  color: #fff !important;
  transform: scale(1.04);
}

#micBtn.chat-composer-action:focus,
#submitBtn.chat-composer-action:focus {
  background-color: #2e2e2e !important;
  color: #fff !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.16);
}

#micBtn.chat-composer-action:active,
#submitBtn.chat-composer-action:active {
  background-color: #2e2e2e !important;
  color: #fff !important;
  transform: scale(0.96);
}

#micBtn.chat-composer-action:disabled,
#submitBtn.chat-composer-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

#micBtn.chat-composer-action.d-none,
#submitBtn.chat-composer-action.d-none {
  display: none !important;
}

.send-play-icon {
  display: inline-block;
  transform: translateX(1px);
  line-height: 1;
  font-size: 0.9rem;
}

#micBtn.mic-recording {
  background-color: #2e2e2e !important;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.12) !important;
  transform: scale(1.05);
}

#submitBtn.chat-composer-action:disabled,
#micBtn.chat-composer-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.fnt-weight-400 {
  font-weight: 400 !important;
}

.scenario-details-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 15px 16px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.15s ease;
  
}


.scenario-details-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}

.scenario-details-label {
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-family: "Open Sans", Arial, sans-serif;
}

.scenario-details-value {
  color: #111827;
  font-size: 0.94rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.scenario-details-pre {
  margin: 0;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #334155;
}

.account-menu {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 1050;
}

.account-profile-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #dbe3ef;
  background: #ffffff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.account-profile-btn:hover {
  background: #f8fafc;
}

.account-profile-panel {
  position: absolute;
  top: 52px;
  right: 0;
  width: 260px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  padding: 14px;
  display: none;
}

.account-profile-panel.show {
  display: block;
}

.account-profile-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.account-profile-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid #f1f5f9;
}

.account-profile-row span {
  font-size: 0.78rem;
  color: #64748b;
}

.account-profile-row strong {
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 500;
  word-break: break-word;
}

#accountProfileBtn {
  width: 42px;
  height: 42px;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none;
  -webkit-appearance: none;
}

#accountProfileBtn:hover,
#accountProfileBtn:focus,
#accountProfileBtn:active,
#accountProfileBtn.show {
  background: transparent !important;
  color: #334155 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

#accountProfileBtn i {
  font-size: 2rem;
  line-height: 1;
}

.dashboard-range-pills {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 999px;
}

.dashboard-range-pill {
  border: none;
  background: transparent; 
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
}

.dashboard-range-pill:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.dashboard-range-pill.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.card-subtitle {
  margin-top: 6px;
  font-size: 0.82rem;
  color: #64748b;
}

#llmCacheEnabled.form-check-input {
  width: 3.25rem;
  height: 1.75rem;
  cursor: pointer;
  margin-top: 0; /* override Bootstrap's default vertical offset */
}

#llmCacheEnabled.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-check.form-switch {
  display: flex;
  align-items: center;
  min-height: 1.75rem;
  padding-left: 0;
}

.form-check.form-switch .form-check-input {
  flex: 0 0 auto;
  margin-left: 0;
  margin-right: 0.75rem;
  margin-top: 0; /* important: remove Bootstrap's 0.25em offset */
}

.form-check.form-switch .form-check-label {
  margin: 0;
  line-height: 1.75rem; /* vertically center text with the switch */
  font-weight: 500;
}

.api-endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

#documentation pre {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}

#documentation code {
  font-family: Consolas, Monaco, monospace;
}

#documentation h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.api-doc-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;

  margin-top: 3rem;
  margin-bottom: 1rem;

  padding-bottom: 0.75rem;

  font-size: 1.75rem;
  font-weight: 700;
  color: #212529;

  border-bottom: 3px solid #0d6efd;
}

.api-doc-heading i {
  color: #0d6efd;
  font-size: 1.25rem;
}

.api-doc-description {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.api-doc-section {
  margin-bottom: 3rem;
}

.account-profile-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 12px 0 8px 0;
}

#accountProfilePanel #deleteAccBtn {
  all: unset !important;

  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;

  margin: 0 !important;
  padding: 2px 0 !important;

  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 400 !important;

  color: #6c757d !important;
  text-align: left !important;
  white-space: nowrap !important;

  cursor: pointer !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

#accountProfilePanel #deleteAccBtn:hover,
#accountProfilePanel #deleteAccBtn:focus,
#accountProfilePanel #deleteAccBtn:active,
#accountProfilePanel #deleteAccBtn:focus-visible {
  all: unset !important;

  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;

  margin: 0 !important;
  padding: 2px 0 !important;

  font-size: 12px !important;
  line-height: 14px !important;
  font-weight: 400 !important;

  color: #6c757d !important;
  text-align: left !important;
  white-space: nowrap !important;

  cursor: pointer !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

.room-shell.is-loading > :not(.room-loading-overlay) {
  visibility: hidden;
}

.room-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f7fb;
}

.room-shell:not(.is-loading) .room-loading-overlay {
  display: none;
}
#anonymousLinkInput {
    font-size: 0.80rem !important;
    font-family: monospace !important;
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
    padding: 0.65rem 0.75rem !important;
}