/* Google Meet Style UI */
.btn-clinera-green {
  background-color: #7AC88A;
  color: white;
}

.btn-clinera-green:hover {
  background-color: #68B578;
  color: white;
}

/* Note: .page-card moved to clinera-theme.css */

/* Board Page Header - matching calendar header */
.board-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 5px 20px;
}

.board-hero .title-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.board-hero .title-block h2 {
  margin: 0;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.3px;
  font-size: 32px;
}

.badge-success {
  background-color: #d4edda;
  color: #155724;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Board Actions Container */
.board-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Board Status Filters - above table */
.board-status-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 12px;
  border-bottom: 2px solid #e3e8ef;
  margin-bottom: 12px;
}

.status-filter-btn {
  border: none;
  background: transparent;
  color: #24427D;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  bottom: -12px;
}

.status-filter-btn:hover {
  color: #1e3566;
}

.status-filter-btn.active {
  color: #5cdb94;
  border-bottom-color: #5cdb94;
}

.status-filter-btn i {
  margin-right: 4px;
  font-size: 8px;
}

/* New Board Button */
.btn-board {
  background: linear-gradient(135deg, #5cdb94 0%, #4ac882 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(92, 219, 148, 0.2);
  white-space: nowrap;
}

.btn-board:hover {
  background: linear-gradient(135deg, #4ac882 0%, #3db870 100%);
  box-shadow: 0 6px 16px rgba(92, 219, 148, 0.3);
  transform: translateY(-1px);
}

.btn-board:active {
  transform: translateY(0);
}

.btn-board i {
  font-size: 14px;
}

/* Enhanced Board Layout Styles */
.board-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5px 0;
}

.board-info {
  flex: 1;
}

.board-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: #24427D;
}

.board-details {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.board-details .badge {
  font-size: 13px;
  padding: 5px 10px;
  font-weight: normal;
}

.board-description {
  color: #666;
  font-size: 14px;
  margin-top: 8px;
  max-width: 80%;
}

/* Responsive layout for board header and actions */
@media (max-width: 991px) {
  .board-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .board-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .board-status-filters {
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

@media (max-width: 575px) {
  .board-hero {
    flex-direction: column;
    gap: 8px;
  }

  .board-hero .title-block {
    width: 100%;
    flex-direction: column;
    gap: 6px;
  }

  .board-hero .title-block h2 {
    font-size: 22px;
  }

  .board-actions {
    gap: 6px;
    width: 100%;
  }

  .btn-new-board {
    padding: 8px 12px;
    font-size: 12px;
    width: 100%;
    justify-content: center;
  }

  .status-filter-btn {
    padding: 5px 10px;
    font-size: 12px;
  }

  .board-status-filters {
    gap: 4px;
  }
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1px;
  min-width: 110px;
  border: 1px solid #e1e5ea;
  background: #f8fafc;
  color: #1f2933;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
  transition: all 0.2s ease;
}

.status-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.08);
}

.status-not-started {
  background: linear-gradient(135deg, #fff9e6 0%, #fff4d2 100%);
  border-color: #f3d899;
  color: #8a6a00;
}

.status-in-progress {
  background: linear-gradient(135deg, #eaf3ff 0%, #dbe9ff 100%);
  border-color: #b7d2ff;
  color: #124074;
}

.status-completed {
  background: linear-gradient(135deg, #e9f8ef 0%, #d9f2e4 100%);
  border-color: #b2e3c0;
  color: #1f7a4d;
}

.status-escalated {
  background: linear-gradient(135deg, #fff3e6 0%, #ffe7d1 100%);
  border-color: #ffcd9b;
  color: #a45a07;
}

.status-cancelled {
  background: linear-gradient(135deg, #fdecec 0%, #f9d8d8 100%);
  border-color: #f3b4b4;
  color: #a11b1b;
}

/* Compact attendee avatars (aligned with My Day cards) */
.attendees-cell {
  text-align: center;
}

.attendees-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.attendees-inline .avatar-small {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #0f172a;
  background: #e5edff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.attendees-inline .avatar-small:nth-child(1) { background-color: #dbeafe; color: #1e40af; }
.attendees-inline .avatar-small:nth-child(2) { background-color: #fae8ff; color: #86198f; }
.attendees-inline .avatar-small:nth-child(3) { background-color: #dcfce7; color: #166534; }
.attendees-inline .avatar-small:nth-child(4) { background-color: #fef9c3; color: #92400e; }

.attendees-inline .avatar-small.more-count {
  background: #f1f5f9;
  color: #0f172a;
}

/* Diagnosis badges (shared with patients view) */
.diagnosis-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  margin: 2px 4px 2px 0;
}

.diagnosis-badge-empty {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px dashed #d9dde3;
}

/* Boards table card - matching patients table styling */
.box {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}



/* Override global table padding for boards */
.row .box .table {
  padding: 0 !important;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.box .table thead th {
  background: #f5f7fb;
  color: #4b5563;
  font-weight: 700;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 10px;
}

.box .table thead th:first-child {
  border-top-left-radius: 12px;
}

.box .table thead th:last-child {
  border-top-right-radius: 12px;
}

.box .table tbody td {
  border-top: 1px solid #f0f2f5;
  padding: 10px;
  color: #374151;
}

.box .table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.box .table tbody tr:hover {
  background: #f0f4ff;
}

/* Table Enhancements */
.table th {
  background-color: #f8f9fa;
  border-top: none;
}

.actions-column {
  white-space: nowrap;
  width: 220px;
}

.actions-column .btn {
  margin-right: 5px;
}

.patient-name-link {
  color: #24427D;
  text-decoration: none;
}

.patient-name-link:hover {
  text-decoration: underline;
  color: #1a3059;
}

/* Full viewport meeting container */
.google-meet-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #202124;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top bar */
.meet-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background-color: #24427D;
  color: white;
  height: 48px;
}

.meet-info {
  display: flex;
  align-items: center;
}

.meet-timer {
  font-size: 14px;
  font-weight: 500;
}

.meet-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  cursor: pointer;
}

.action-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Main content area */
.meet-content {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Side panel (patient list) */
.side-panel {
  width: 320px;
  background-color: white;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 10;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.side-panel.open {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #24427D;
  color: white;
}

.close-panel {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.patient-item {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  min-height: 68px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.patient-item:hover {
  background-color: #f8f9fa;
}

.patient-item.active {
  background-color: #e8f0fe;
}

.patient-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #5c88c6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-weight: 500;
}

.patient-info {
  flex: 1;
}

.patient-name {
  font-weight: 500;
  margin-bottom: 4px;
}

.patient-meta {
  font-size: 12px;
  color: #5f6368;
}

/* Main meeting area where iframe lives */
.meet-main-area {
  flex: 1;
  position: relative;
}

.meet-main-area iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Control Bar Toggle Button */
.control-bar-toggle {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #24427D 0%, #1e3566 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  box-shadow: 0 4px 15px rgba(36, 66, 125, 0.3);
}

.control-bar-toggle:hover {
  background: linear-gradient(135deg, #1e3566 0%, #24427D 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(36, 66, 125, 0.4);
}

.control-bar-toggle i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.control-bar-toggle.rotated i {
  transform: rotate(180deg);
}

/* Bottom control bar - Enhanced styling */
.meet-control-bar {
  height: 80px;
  background: linear-gradient(135deg, #24427D 0%, #1e3566 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 -4px 20px rgba(36, 66, 125, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.5s ease;
}

.meet-control-bar.hidden {
  transform: translateY(100%);
  opacity: 0;
  box-shadow: 0 -4px 20px rgba(36, 66, 125, 0.1);
}

.meet-control-bar.hidden .control-btn {
  transform: translateY(30px) scale(0.7);
  opacity: 0;
}

/* Staggered animation for control buttons */
.control-btn {
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Smooth entrance delays - buttons appear from center outward */
.meet-control-bar:not(.hidden) .control-center .control-btn:nth-child(1) {
  transition-delay: 0.1s;
}

.meet-control-bar:not(.hidden) .control-center .control-btn:nth-child(2) {
  transition-delay: 0.15s;
}

.meet-control-bar:not(.hidden) .control-center .control-btn:nth-child(3) {
  transition-delay: 0.2s;
}

.meet-control-bar:not(.hidden) .control-center .control-btn:nth-child(4) {
  transition-delay: 0.25s;
}

.meet-control-bar:not(.hidden) .control-left .control-btn {
  transition-delay: 0.3s;
}

.meet-control-bar:not(.hidden) .control-right .control-btn {
  transition-delay: 0.35s;
}

/* Smooth exit delays - buttons disappear from outside inward */
.meet-control-bar.hidden .control-left .control-btn {
  transition-delay: 0.05s;
}

.meet-control-bar.hidden .control-right .control-btn {
  transition-delay: 0.1s;
}

.meet-control-bar.hidden .control-center .control-btn:nth-child(4) {
  transition-delay: 0.15s;
}

.meet-control-bar.hidden .control-center .control-btn:nth-child(3) {
  transition-delay: 0.2s;
}

.meet-control-bar.hidden .control-center .control-btn:nth-child(2) {
  transition-delay: 0.25s;
}

.meet-control-bar.hidden .control-center .control-btn:nth-child(1) {
  transition-delay: 0.3s;
}

.meet-control-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.control-left,
.control-right {
  width: 140px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-right {
  width: auto;
  min-width: 200px;
  justify-content: flex-end;
}

.meet-time {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-center {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.control-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.control-btn:hover::before {
  opacity: 1;
}

.control-btn:active {
  transform: translateY(0) scale(0.98);
}

.control-btn i {
  font-size: 20px;
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced button states for call controls */
.control-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.control-btn.muted {
  background: linear-gradient(135deg, #ea4335 0%, #d93025 100%);
  border-color: rgba(234, 67, 53, 0.5);
  animation: pulse-red 2s infinite;
}

.control-btn.muted i {
  animation: shake 0.5s ease-in-out;
}

.control-btn.disabled {
  background: rgba(108, 117, 125, 0.3);
  border-color: rgba(108, 117, 125, 0.5);
  opacity: 0.6;
}

/* Recording button special state */
.control-btn.recording {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border-color: rgba(220, 53, 69, 0.5);
  animation: pulse-recording 1.5s infinite;
}

.control-btn.recording i {
  animation: recording-blink 1s infinite;
}

/* Animation keyframes */
@keyframes pulse-red {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(234, 67, 53, 0.3);
  }

  50% {
    box-shadow: 0 0 30px rgba(234, 67, 53, 0.6);
  }
}

@keyframes pulse-recording {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.4);
  }

  50% {
    box-shadow: 0 0 35px rgba(220, 53, 69, 0.8);
  }
}

@keyframes recording-blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0.3;
  }
}

@keyframes shake {

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

  25% {
    transform: translateX(-2px);
  }

  75% {
    transform: translateX(2px);
  }
}

@keyframes button-press {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

/* Button click animation */
.control-btn.clicked {
  animation: button-press 0.2s ease-in-out;
}

/* Specific button type animations */
.mic-btn.muted {
  background: linear-gradient(135deg, #ea4335 0%, #d93025 100%);
}

.video-btn.disabled {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.control-btn:active {
  transform: translateY(1px) scale(0.98);
}

.control-btn.end-call {
  background: linear-gradient(135deg, #ea4335 0%, #d93025 100%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(234, 67, 53, 0.3);
}

.control-btn.end-call:hover {
  background: linear-gradient(135deg, #d93025 0%, #c5221f 100%);
  border-color: rgba(234, 67, 53, 0.5);
  box-shadow: 0 8px 25px rgba(234, 67, 53, 0.4);
}

/* Admin End Meeting Button */
.control-btn.admin-end-meeting {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  width: auto;
  padding: 0 16px;
  height: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  border: 1px solid rgba(220, 53, 69, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.control-btn.admin-end-meeting:hover {
  background: linear-gradient(135deg, #c82333 0%, #b21e2f 100%);
  border-color: rgba(220, 53, 69, 0.5);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
  transform: translateY(-2px) scale(1.02);
}

.end-meeting-text {
  font-size: 12px;
  font-weight: 500;
}

/* User Leave Meeting Button */
.control-btn.user-leave-meeting {
  background-color: #6c757d;
  width: auto;
  padding: 0 12px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.control-btn.user-leave-meeting:hover {
  background-color: #545b62;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.leave-meeting-text {
  font-size: 12px;
  font-weight: 500;
}

/* ADDED: Style for active recording button */
.control-btn.recording-active i {
  color: #ea4335;
  /* Red color for recording */
  animation: pulse 1s infinite;
  /* Subtle pulse animation */
}



/* Mic and Camera button states */
.control-btn.mic-on {
  background-color: rgba(76, 175, 80, 0.2);
  border: 2px solid #4caf50;
}

.control-btn.mic-off {
  background-color: rgba(244, 67, 54, 0.2);
  border: 2px solid #f44336;
}

.control-btn.video-on {
  background-color: rgba(76, 175, 80, 0.2);
  border: 2px solid #4caf50;
}

.control-btn.video-off {
  background-color: rgba(244, 67, 54, 0.2);
  border: 2px solid #f44336;
}

.control-btn.mic-on i {
  color: #4caf50;
}

.control-btn.mic-off i {
  color: #f44336;
}

.control-btn.video-on i {
  color: #4caf50;
}

.control-btn.video-off i {
  color: #f44336;
}

.control-btn.conclude-btn {
  background-color: #5c88c6;
  width: auto;
  padding: 0 15px;
  border-radius: 4px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 36px;
}

.control-btn.conclude-btn:hover {
  background-color: #4a75b5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.conclude-btn-text {
  font-size: 14px;
  font-weight: 500;
}

.control-btn.conclude-btn i {
  font-size: 14px;
}

/* Presenter badge shown in parent control bar */
.presenter-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1;
  margin-right: 10px;
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .side-panel {
    width: 85%;
    max-width: 320px;
  }

  .meet-top-bar {
    padding: 8px;
  }

  .meet-control-bar {
    height: 70px;
    padding: 0 12px;
  }

  .control-btn {
    width: 42px;
    height: 42px;
  }

  .control-btn i {
    font-size: 18px;
  }

  .control-center {
    gap: 10px;
  }

  .control-bar-toggle {
    bottom: 80px;
    right: 15px;
    width: 36px;
    height: 36px;
  }

  .control-bar-toggle i {
    font-size: 14px;
  }

  .control-btn {
    width: 40px;
    height: 40px;
  }

  .control-left,
  .control-right {
    width: auto;
  }

  /* Allow the center controls to take available space and prevent right block from forcing overflow */
  .control-center {
    flex: 1 1 auto;
    min-width: 0;
  }

  .control-right {
    min-width: 0;
    flex: 0 0 auto;
  }
}

@media (max-width: 575px) {
  .meet-top-bar {
    height: 40px;
    padding: 4px 8px;
  }

  .action-btn {
    width: 28px;
    height: 28px;
  }

  .control-center {
    gap: 4px;
  }

  .control-btn {
    width: 36px;
    height: 36px;
  }

  .control-btn i {
    font-size: 16px;
  }

  .control-btn.end-call {
    width: 50px;
  }

  /* Avoid layout breakage: allow horizontal scroll if buttons overflow */
  .control-center {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
  }

  .control-center::-webkit-scrollbar {
    display: none;
  }

  /* Remove min-width pressure from right block */
  .control-right {
    min-width: 0;
    flex: 0 0 auto;
  }

  /* Hide verbose labels so controls become icon-only */
  .conclude-btn-text,
  .leave-meeting-text,
  .end-meeting-text {
    display: none;
  }

  /* Compress wide text buttons to square icon buttons */
  .control-btn.conclude-btn,
  .control-btn.admin-end-meeting,
  .control-btn.user-leave-meeting {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
}

/* Hide elements to prevent double controls */
body.in-meeting .main-header,
body.in-meeting .main-footer,
body.in-meeting .content-header,
body.in-meeting ol.breadcrumb {
  display: none !important;
}

body.in-meeting .content-wrapper {
  margin-left: 0 !important;
  padding-top: 0 !important;
}

/* Extra-small phones adjustments */
@media (max-width: 480px) {

  /* Control bar compaction */
  .meet-control-bar {
    height: 64px;
    padding: 0 8px;
  }

  .control-btn {
    width: 38px;
    height: 38px;
  }

  .control-btn i {
    font-size: 16px;
  }

  .control-center {
    gap: 8px;
  }

  .control-left,
  .control-right {
    width: 100px;
    min-width: 100px;
  }

  .control-bar-toggle {
    bottom: 74px;
    right: 12px;
    width: 32px;
    height: 32px;
  }

  .control-bar-toggle i {
    font-size: 12px;
  }

  .control-left,
  .control-right {
    width: auto;
  }

  .control-center {
    gap: 4px;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .meet-time {
    display: none;
  }

  .control-btn {
    width: 34px;
    height: 34px;
  }

  .control-btn i {
    font-size: 15px;
  }

  .control-btn.end-call {
    width: 44px;
    height: 34px;
  }

  /* Hide verbose button labels on tiny screens */
  .conclude-btn-text,
  .leave-meeting-text {
    display: none;
  }

  .control-btn.conclude-btn,
  .control-btn.admin-end-meeting,
  .control-btn.user-leave-meeting {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  /* Top bar subtle reductions */
  .meet-top-bar .meeting-title {
    font-size: 14px;
  }

  .meet-top-bar .meet-timer {
    font-size: 12px;
  }

  /* Side panel (participant list) tweaks */
  .side-panel {
    width: 100%;
    max-width: 100%;
  }

  .patient-item {
    padding: 10px 12px;
  }

  .patient-avatar {
    width: 32px;
    height: 32px;
    margin-right: 10px;
  }

  .patient-name {
    font-size: 14px;
  }

  .patient-meta {
    font-size: 11px;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(300px);
  }

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

/* Invite Users Modal Styles */
.user-item.selected-user {
  background-color: #e8f4fd;
  border-left: 3px solid #007bff;
}

.user-item:hover {
  background-color: #f8f9fa;
}

.user-selection-container {
  background-color: #fff;
}

.user-info {
  line-height: 1.4;
}

.invite-users-modal .modal-dialog {
  max-width: 700px;
}

.invite-users-modal .user-item {
  transition: background-color 0.2s ease;
  border-radius: 4px;
  margin-bottom: 2px;
}

.invite-users-modal .user-item:last-child {
  border-bottom: none;
}

.invite-users-modal .selected-users-summary {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 4px;
  padding: 10px;
}

.invite-users-modal .search-input {
  border: 2px solid #e9ecef;
  transition: border-color 0.3s ease;
}

.invite-users-modal .search-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Cancer Type Selection Cards */
.cancer-type-card {
  transition: all 0.2s ease;
}

.cancer-type-card:hover {
  background-color: #f0f0f0 !important;
  border-color: #5cdb94 !important;
  transform: translateX(3px);
}

.cancer-type-card.selected {
  background-color: #e8f5e9 !important;
  border-color: #5cdb94 !important;
  box-shadow: 0 2px 8px rgba(92, 219, 148, 0.3);
}

.cancer-type-card.no-patients {
  opacity: 0.6;
}

.cancer-type-card.no-patients:hover {
  opacity: 0.8;
}

.badge-success {
  background-color: #5cdb94;
  color: white;
}

.badge-default {
  background-color: #ccc;
  color: #666;
}

/* Cancer Type Filter Tags */
.cancer-filter-tag {
  user-select: none;
}

.cancer-filter-tag:hover {
  background-color: #f0f0f0 !important;
  border-color: #5cdb94 !important;
}

.cancer-filter-tag.active {
  background-color: #5cdb94 !important;
  border-color: #5cdb94 !important;
  color: white;
}

.cancer-filter-tag.active .badge {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #5cdb94 !important;
}

/* Patient Case Cards */
.patient-case-card {
  user-select: none;
}

.patient-case-card:hover {
  background-color: #f8f9fa !important;
}

.patient-case-card.patient-selected {
  background-color: #e8f5e9 !important;
  border-left-color: #5cdb94 !important;
}

/* Patient Checkbox States */
.patient-checkbox {
  background-color: white !important;
  border-color: #ddd !important;
}

.patient-checkbox.checkbox-selected {
  background-color: #5cdb94 !important;
  border-color: #5cdb94 !important;
  box-shadow: 0 0 0 3px rgba(92, 219, 148, 0.25) !important;
}

.patient-case-card:hover .patient-checkbox:not(.checkbox-selected) {
  border-color: #5cdb94 !important;
  background-color: rgba(92, 219, 148, 0.05) !important;
}
/* --- New Styles for Clean Buttons & Spacing --- */
/* Note: .btn-clean, .btn-clean-sm, and .table-loading-overlay moved to clinera-theme.css */

/* Improved Board Hero spacing */
.board-hero {
  padding: 24px 24px 16px 24px;
  gap: 16px;
}

.board-hero .title-block h2 {
  font-size: 28px;
  margin-bottom: 4px;
}

/* Board-specific button overrides if needed can go here */

/* Removed - all moved to clinera-theme.css */
