body {
  font-feature-settings: "ss01" on, "ss02" on;
}

.navbar-night {
  background: linear-gradient(90deg, #7dd3fc 0%, #38bdf8 55%, #0ea5e9 100%);
  border-bottom: 1px solid rgba(2, 132, 199, 0.35);
  height: 150px;
}

.navbar-night .container-fluid {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-night .navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
  margin-right: 0;
}

.navbar-night .navbar-logo {
  height: 84px;
  width: auto;
}

.text-header-sub {
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 576px) {
  .navbar-night {
    height: auto;
  }
  .navbar-night .container-fluid {
    height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    flex-wrap: wrap;
  }
  .navbar-night .navbar-logo {
    height: 64px;
  }
}

#patient-list .list-group-item {
  cursor: pointer;
}

#patient-list .list-group-item.active {
  background: #0d6efd;
  border-color: #0d6efd;
}

#patient-list .list-group-item.active .patient-name-btn {
  color: #fff;
}

#patient-list .list-group-item.active .patient-delete-btn {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

#patient-list .list-group-item.active .patient-delete-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.badge-soft {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

.section-card {
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
}

.section-card h6 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: #6c757d;
}

.section-card .copy-section {
  white-space: nowrap;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.2;
}

.section-card .copy-section.is-copying {
  pointer-events: none;
}

.pre-wrap {
  white-space: pre-wrap;
}

.vu-track {
  position: relative;
  height: 42px;
  border-radius: 0;
  background: #212529;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vu-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #20c997 0%, #20c997 55%, #ffc107 75%, #dc3545 100%);
  transition: width 60ms linear;
  border-radius: 0;
}

.vu-peak {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.recorder-controls {
  row-gap: 0.5rem;
}

.btn-round {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.btn-rec .icon-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08) inset;
  display: inline-block;
}

.btn-pause .icon-pause {
  width: 14px;
  height: 14px;
  display: inline-block;
  background:
    linear-gradient(to right,
      currentColor 0 4px,
      transparent 4px 10px,
      currentColor 10px 14px);
  opacity: 0.9;
}

.btn-pause.is-paused {
  background-color: var(--bs-warning);
  border-color: var(--bs-warning);
  color: #111827;
  opacity: 1;
}

.btn-pause.is-paused:disabled {
  opacity: 1;
}

.waveform-canvas {
  width: 100%;
  height: 112px;
  display: block;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  cursor: pointer;
}

@media (max-width: 576px) {
  .btn-round {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }
}

/* ===== Portal additions ===== */

/* Honeypot field: visually hidden but present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Dashboard tool tiles */
.tool-tile {
  transition: transform .12s ease, box-shadow .12s ease;
  color: inherit;
}
.tool-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.12) !important;
}
.tool-tile-disabled {
  opacity: .65;
}
.tool-tile-disabled:hover {
  transform: none;
  box-shadow: none !important;
}

/* ===== AdminLTE-style portal layout ===== */

.portal-body {
  background: #f4f6f9;
  min-height: 100vh;
}

.portal-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: #1c2b3a;
  color: #c2cbd6;
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform .2s ease;
}

.sidebar-brand {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand img {
  background: #fff;
  border-radius: 10px;
  padding: 6px 14px;
  max-width: 100%;
  height: 56px;
  object-fit: contain;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
}

.sidebar-section {
  font-size: .70rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7d8ea1;
  padding: 14px 12px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #c2cbd6;
  text-decoration: none;
  font-size: .925rem;
  margin-bottom: 2px;
  transition: background .12s ease, color .12s ease;
}
.sidebar-link i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
}
.sidebar-link:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}
.sidebar-link.active {
  background: #2f6fed;
  color: #fff;
}

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 16px;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user i {
  font-size: 1.7rem;
  color: #7d8ea1;
}
.sidebar-user-name {
  font-size: .85rem;
  color: #e8edf3;
  line-height: 1.2;
}
.sidebar-user-role {
  font-size: .72rem;
  color: #7d8ea1;
}

.portal-main {
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  padding: 12px 24px;
  border-bottom: 1px solid #e3e8ee;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.portal-page-title {
  color: #1c2b3a;
}

.portal-content {
  padding: 24px;
  flex: 1;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  .portal-sidebar {
    transform: translateX(-100%);
  }
  .portal-sidebar.open {
    transform: translateX(0);
  }
  .portal-main {
    margin-left: 0;
  }
  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1035;
  }
}
