/* Simple Hero Section */
.simple-hero {
  background: #fff;
  margin-bottom: 24px;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.hero-header {
  flex: 1;
  min-width: 0;
}

.hero-date {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 8px 0;
}

.hero-greeting {
  font-size: 32px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
  font-family: Poppins-SemiBold, sans-serif;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-name {
  color: #3b82f6;
  font-weight: 700;
  word-wrap: break-word;
}

/* Patient count bubble to replace avatar list without breaking layout */
.avatar-small.patient-count-bubble {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  min-width: 36px;
  padding: 0 8px;
  gap: 6px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-stat-item {
  min-width: 160px;
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}

.hero-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.hero-stat-desc {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #3b82f6;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.hero-cta:hover,
.hero-cta:focus {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  color: white;
  text-decoration: none;
  outline: none;
}

.hero-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

/* Modern Hero Section */
.modern-hero {
  background: linear-gradient(135deg, #2c5282 0%, #4a90a4 50%, #5ca9b8 100%);
  margin-bottom: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  padding: 40px;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  display: none;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.hero-left {
  flex: 1;
}

.user-profile-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.user-avatar img,
.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.avatar-placeholder {
  background: linear-gradient(135deg, #5cdb94 0%, #4caf50 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: white;
  font-family: Poppins-SemiBold, sans-serif;
}

.online-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: #5cdb94;
  border: 3px solid #2c5282;
  border-radius: 50%;
}

.user-greeting {
  flex: 1;
}

.greeting-title {
  font-size: 42px;
  font-weight: 700;
  color: white;
  margin: 0 0 12px 0;
  line-height: 1.2;
  font-family: Poppins-SemiBold, sans-serif;
}

.greeting-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px 0;
  line-height: 1.5;
  font-family: Poppins-Regular, sans-serif;
}

.greeting-subtitle strong {
  font-weight: 700;
  color: white;
}



.hero-right {
  text-align: right;
}

.organization-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  min-width: 300px;
}

.org-logo {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.org-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.org-logo i {
  font-size: 28px;
  color: #2c5282;
}

.org-info {
  flex: 1;
  text-align: left;
}

.org-info h3 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 5px 0;
  font-family: Poppins-SemiBold, sans-serif;
}

.org-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: Poppins-Regular, sans-serif;
}

/* Stats Cards Section - Mini Version */
.stats-container {
  margin-bottom: 25px;
}

.stat-card-mini {
  background: white;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  min-height: auto;
}

.stat-card-mini:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.stat-card-mini.stat-blue .stat-icon-mini {
  background: #eff6ff;
  color: #3b82f6;
}

.stat-card-mini.stat-purple .stat-icon-mini {
  background: #f3e8ff;
  color: #9333ea;
}

.stat-card-mini.stat-green .stat-icon-mini {
  background: #dcfce7;
  color: #16a34a;
}

.stat-card-mini.stat-orange .stat-icon-mini {
  background: #ffedd5;
  color: #ea580c;
}

.stat-icon-mini {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-mini i {
  font-size: 18px;
}

.stat-details-mini {
  flex: 1;
}

.stat-label-mini {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  margin: 0 0 3px 0;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1;
}

.stat-value-mini {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1;
}

/* Container */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}



/* Responsive Design */
@media (max-width: 768px) {
  .modern-hero {
    padding: 30px 20px;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .hero-right {
    width: 100%;
    text-align: left;
  }

  .organization-card {
    min-width: auto;
    width: 100%;
  }

  .user-profile-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .greeting-title {
    font-size: 32px;
  }

  /* Dashboard Layout */
  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    margin-top: 30px;
  }

  /* Meeting Cards */
  .horizontal-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .meeting-info-left {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .horizontal-card .meeting-time {
    margin-bottom: 4px;
  }

  .horizontal-card .meeting-desc {
    margin: 4px 0 0 0;
    max-width: 100%;
    white-space: normal;
  }

  .meeting-info-right {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: 8px;
  }
}

/* --- New Dashboard Redesign --- */

.dashboard-container {
  display: flex;
  gap: 30px;
  padding: 20px 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.dashboard-sidebar {
  width: 350px;
  flex-shrink: 0;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.indicator-bar {
  width: 4px;
  height: 24px;
  background-color: #94a3b8;
  border-radius: 2px;
}

.indicator-bar.green {
  background-color: #5cdb94;
}

.indicator-bar.blue {
  background-color: #3b82f6;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  word-wrap: break-word;
}

.btn-create-board {
  background: transparent;
  color: #3b82f6;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.view-calendar-link {
  color: #64748b;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.mt-40 {
  margin-top: 40px;
}

/* Meeting Cards */
.meeting-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  width: 100%;
  box-sizing: border-box;
}

.meeting-card.empty-state {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
}

.empty-icon {
  width: 64px;
  height: 64px;
  background: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #3b82f6;
  flex-shrink: 0;
}

.empty-icon.purple {
  background: #f3e8ff;
  color: #a855f7;
}

.empty-content {
  flex: 1;
}

.empty-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.empty-content p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.btn-schedule {
  background: #0f172a;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-schedule:hover {
  background: #1e293b;
}

/* Active Meeting Card */

.meeting-time {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.completed {
  background: #dcfce7;
  color: #166534;
}

.status-badge.scheduled {
  background: #e0f2fe;
  color: #075985;
}

.meeting-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.meeting-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px 0;
  line-height: 1.5;
}



.patient-count {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
}

.avatars {
  display: flex;
  padding-left: 5px; /* Space for the first avatar's left edge if needed */
}

.avatar-circle {
  width: 20px;
  height: 20px;
  background: #e2e8f0;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.avatar-circle:nth-child(1) { background-color: #dbeafe; color: #1e40af; z-index: 4; }
.avatar-circle:nth-child(2) { background-color: #fae8ff; color: #86198f; z-index: 3; }
.avatar-circle:nth-child(3) { background-color: #dcfce7; color: #166534; z-index: 2; }

.avatar-circle.more-count {
  background-color: #f1f5f9;
  color: #64748b;
  font-size: 9px;
  z-index: 0;
}

.summary-link {
  color: #3b82f6;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

/* Horizontal Card Styles */
.horizontal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
}

.meeting-info-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.meeting-info-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.horizontal-card .meeting-time {
  margin-bottom: 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
  min-width: 65px;
}

.horizontal-card .status-badge {
  font-size: 11px;
  padding: 4px 10px;
  white-space: nowrap;
}

.horizontal-card .meeting-title {
  margin: 0;
  font-size: 16px;
  color: #475569;
  font-weight: 500;
}

.horizontal-card .meeting-desc {
  margin: 0 0 0 20px;
  font-size: 14px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.horizontal-card .patient-count {
  background: #f8fafc;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.horizontal-card .summary-link {
  color: #3b82f6;
  font-weight: 600;
  font-size: 14px;
}

/* Empty State Centered */
.meeting-card.empty-state.centered {
  justify-content: center;
  padding: 40px;
}

.meeting-card.empty-state.centered .empty-content {
  flex: 0 1 auto;
  text-align: center;
  padding: 0 20px;
}

/* Sidebar History */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sidebar-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-count {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
}



.history-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  border-left: 3px solid #94a3b8;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 6px;
}

.history-date {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
}

.history-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.history-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  row-gap: 10px;
}

.history-footer .summary-link {
  flex-basis: 100%;
  margin-top: 8px;
}

.history-footer .attendees-info {
  display: flex;
  align-items: center;
}

.history-footer .patients-info {
  margin-left: auto;
}

.view-all-history {
  text-align: right;
  margin-top: 20px;
}

.view-all-history a {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Today's Meeting Card - Horizontal Design */
.today-meeting-card {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #5cdb94;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 12px;
}

.today-meeting-card.upcoming {
  border-left-color: #3b82f6;
}

.card-time {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  min-width: 70px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.time-separator {
  width: 2px;
  height: 40px;
  background: #e2e8f0;
  border-radius: 1px;
  flex-shrink: 0;
}

.card-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.content-left {
  flex: 1;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.card-description {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}

.diagnosis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 4px;
}

.diagnosis-tags .diagnosis-pill {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
}

.card-status-tag {
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  min-width: fit-content;
  text-transform: capitalize;
  letter-spacing: 0.25px;
}

.card-status-tag.not-started {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.card-status-tag.completed {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.card-status-tag.in-progress {
  background: #dbeafe;
  color: #0c4a6e;
  border: 1px solid #bfdbfe;
}

.card-status-tag.scheduled {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 1024px) {
  .card-footer {
    flex-wrap: wrap;
    gap: 12px;
    row-gap: 12px;
  }

  .attendees-badge {
    flex-basis: 100%;
    margin-bottom: 4px;
  }

  .patients-info {
    flex-basis: 100%;
    margin-bottom: 4px;
  }

  .card-status-tag {
    flex-basis: auto;
  }

  .btn-join-meeting {
    flex-basis: auto;
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    row-gap: 10px;
  }

  .attendees-badge {
    flex-basis: 100%;
    width: 100%;
  }

  .patients-info {
    flex-basis: 100%;
    width: 100%;
  }

  .card-status-tag {
    align-self: flex-start;
  }

  .btn-join-meeting {
    align-self: flex-start;
    margin-left: 0;
  }
}

.attendees-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: #f1f5f9;
  border-radius: 12px;
}

.attendees-label {
  font-size: 12px;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
}

.patients-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: #f1f5f9;
  border-radius: 12px;
}

.patients-label {
  font-size: 12px;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
}

.avatars-small {
  display: flex;
  gap: -6px;
  flex-wrap: wrap;
  align-items: center;
  max-width: 240px;
}

@media (max-width: 768px) {
  .avatars-small {
    max-width: 100%;
  }
}

.avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  background: var(--avatar-bg, #3b82f6);
  flex-shrink: 0;
}

.avatar-small:nth-child(1) {
  background: #3b82f6;
  z-index: 10;
}

.avatar-small:nth-child(2) {
  background: #a855f7;
  z-index: 9;
}

.avatar-small:nth-child(3) {
  background: #ec4899;
  z-index: 8;
}

.avatar-small:nth-child(4) {
  background: #f59e0b;
  z-index: 7;
}

.avatar-small:nth-child(5) {
  background: #10b981;
  z-index: 6;
}

.avatar-small:nth-child(6) {
  background: #06b6d4;
  z-index: 5;
}

.avatar-small:nth-child(7) {
  background: #ef4444;
  z-index: 4;
}

.avatar-small:nth-child(8) {
  background: #8b5cf6;
  z-index: 3;
}

.avatar-small:nth-child(9) {
  background: #14b8a6;
  z-index: 2;
}

.avatar-small:nth-child(10) {
  background: #f97316;
  z-index: 1;
}

.avatar-small:nth-child(n+11) {
  background: #6366f1;
  z-index: 0;
}



.avatar-small.patient-avatar.encrypted {
  background: #fbbf24;
  position: relative;
  cursor: help;
}

.avatar-small.patient-avatar.encrypted i {
  font-size: 12px;
}

.avatar-small.patient-avatar.encrypted::after {
  content: 'Encrypted';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
}

.avatar-small.patient-avatar.encrypted:hover::after {
  opacity: 1;
}

.patients-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.patient-badge {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
  padding: 6px 10px;
  background: #f1f5f9;
  border-radius: 12px;
  white-space: nowrap;
}

.patient-badge.encrypted {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.patient-badge.encrypted i {
  margin-right: 4px;
  font-size: 11px;
}

.btn-join-meeting {
  color: #3b82f6;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}

.btn-join-meeting:hover {
  color: #2563eb;
}

/* Match the arrow hover animation used in view-more cards */
.btn-join-meeting:hover .view-more-arrow {
  color: #3b82f6;
  transform: translateX(4px);
}

.view-more-card {
  display: block;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.view-more-card:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.view-more-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.view-more-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.view-more-icon i {
  font-size: 20px;
  color: #3b82f6;
}

.view-more-text {
  flex: 1;
}

.view-more-text h3 {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.view-more-text p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.view-more-arrow {
  font-size: 18px;
  color: #94a3b8;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.view-more-card:hover .view-more-arrow {
  color: #3b82f6;
  transform: translateX(4px);
}

@media (max-width: 1200px) {
  .simple-hero {
    padding: 32px;
  }
  
  .hero-content {
    flex-direction: column;
    gap: 32px;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 24px;
  }
  
  .today-meeting-card {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .time-separator {
    display: none;
  }
  
  .card-content {
    flex: 1 1 auto;
    min-width: 300px;
  }
  
  .card-footer {
    flex: 1 1 100%;
    justify-content: space-between;
  }
  
  .view-more-card {
    padding: 20px;
  }
  
  .view-more-icon {
    width: 44px;
    height: 44px;
  }
  
  .view-more-icon i {
    font-size: 18px;
  }

  /* Dashboard layout for tablet */
  .dashboard-container {
    flex-direction: column;
    gap: 24px;
  }

  .dashboard-sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .simple-hero {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .hero-content {
    flex-direction: column;
    gap: 16px;
  }
  
  .hero-greeting {
    font-size: 26px;
    font-weight: 700;
  }

  .hero-name {
    display: block;
  }

  .hero-stat-value {
    font-size: 22px;
  }

  .hero-stat-label {
    font-size: 10px;
  }

  .hero-stat-desc {
    font-size: 12px;
  }
  
  .hero-cta {
    padding: 10px 14px;
    font-size: 12px;
    width: 100%;
    justify-content: center;
  }
  
  .today-meeting-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }
  
  .card-time {
    width: 100%;
    margin-bottom: 4px;
    font-size: 11px;
  }
  
  .time-separator {
    display: none;
  }
  
  .card-content {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .content-left {
    width: 100%;
  }
  
  .card-title {
    font-size: 15px;
    margin-bottom: 4px;
  }
  
  .card-description {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .diagnosis-tags {
    margin-bottom: 8px;
  }

  .diagnosis-pill {
    font-size: 11px;
    padding: 3px 6px;
  }
  
  .card-status-tag {
    align-self: flex-start;
    font-size: 10px;
    padding: 4px 8px;
    margin-bottom: 8px;
  }
  
  .card-footer {
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .attendees-badge {
    padding: 6px 8px;
    font-size: 11px;
    width: 100%;
  }

  .attendees-label {
    font-size: 11px;
  }

  .avatars-small {
    max-width: 200px;
  }

  .avatar-small {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }
  
  .patient-badge {
    font-size: 11px;
    padding: 4px 8px;
  }

  .patients-info {
    width: 100%;
  }
  
  .btn-join-meeting {
    font-size: 12px;
    width: 100%;
    padding: 8px;
    display: block;
    text-align: center;
    background: #f1f5f9;
    border-radius: 6px;
  }

  .btn-join-meeting:hover {
    background: #e2e8f0;
  }
  
  .view-more-card {
    padding: 16px;
    margin-top: 12px;
  }

  .view-more-content {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .view-more-icon {
    width: 40px;
    height: 40px;
  }
  
  .view-more-icon i {
    font-size: 16px;
  }
  
  .view-more-text h3 {
    font-size: 14px;
    margin-bottom: 2px;
  }
  
  .view-more-text p {
    font-size: 12px;
  }

  .view-more-arrow {
    font-size: 16px;
    align-self: flex-end;
    margin-top: -24px;
  }

  /* Section headers */
  .section-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .header-title {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .btn-create-board {
    font-size: 12px;
    width: 100%;
    text-align: left;
  }

  .view-calendar-link {
    font-size: 12px;
    width: 100%;
    text-align: left;
  }

  /* Empty state */
  .meeting-card.empty-state {
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px;
  }

  .empty-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .empty-content h3 {
    font-size: 16px;
  }

  .empty-content p {
    font-size: 13px;
  }

  /* Sidebar */
  .sidebar-header {
    flex-wrap: wrap;
  }

  .sidebar-header h2 {
    font-size: 15px;
    width: 100%;
  }

  .history-card {
    padding: 12px;
    margin-bottom: 10px;
  }

  .history-title {
    font-size: 13px;
  }

  .history-desc {
    font-size: 11px;
  }

  .history-date {
    font-size: 10px;
  }

  .view-all-history {
    margin-top: 16px;
  }

  .view-all-history a {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .simple-hero {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 10px;
  }

  .hero-content {
    gap: 12px;
  }
  
  .hero-greeting {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .hero-date {
    font-size: 10px;
  }

  .hero-name {
    font-size: 20px;
  }
  
  .hero-stat-value {
    font-size: 18px;
  }

  .hero-stat-label {
    font-size: 9px;
  }

  .hero-stat-item {
    min-width: 100%;
  }

  .hero-stats {
    gap: 12px;
  }
  
  .hero-cta {
    padding: 8px 12px;
    font-size: 11px;
    gap: 6px;
  }

  .hero-cta i {
    font-size: 12px;
  }

  /* Meeting cards for small phones */
  .today-meeting-card {
    padding: 12px;
    gap: 8px;
    border-radius: 10px;
    margin-bottom: 12px;
  }
  
  .card-time {
    font-size: 10px;
    min-width: auto;
    margin-bottom: 2px;
  }
  
  .card-content {
    gap: 6px;
  }
  
  .card-title {
    font-size: 14px;
    margin-bottom: 3px;
  }
  
  .card-description {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .diagnosis-tags {
    margin-bottom: 6px;
  }

  .diagnosis-pill {
    font-size: 10px;
    padding: 2px 4px;
  }
  
  .card-status-tag {
    font-size: 9px;
    padding: 3px 6px;
    margin-bottom: 6px;
  }
  
  .card-footer {
    gap: 8px;
  }

  .attendees-badge,
  .patients-badge {
    font-size: 10px;
    padding: 4px 6px;
    border-radius: 8px;
  }

  .attendees-label,
  .patients-label {
    font-size: 10px;
  }

  .avatar-small {
    width: 20px;
    height: 20px;
    font-size: 8px;
    margin-right: -8px;
  }

  .patient-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .btn-join-meeting {
    font-size: 11px;
    padding: 6px;
    width: 100%;
  }

  /* View more card */
  .view-more-card {
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;
  }

  .view-more-content {
    gap: 10px;
  }
  
  .view-more-icon {
    width: 36px;
    height: 36px;
  }
  
  .view-more-icon i {
    font-size: 14px;
  }
  
  .view-more-text h3 {
    font-size: 13px;
  }
  
  .view-more-text p {
    font-size: 11px;
  }

  .view-more-arrow {
    font-size: 14px;
  }

  /* Section headers */
  .section-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .section-header h2 {
    font-size: 15px;
  }

  .indicator-bar {
    height: 20px;
  }

  .btn-create-board {
    font-size: 11px;
    padding: 6px 10px;
    width: 100%;
  }

  .view-calendar-link {
    font-size: 11px;
    width: 100%;
  }

  /* Empty state */
  .meeting-card.empty-state {
    gap: 12px;
    padding: 20px 12px;
  }

  .empty-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .empty-content h3 {
    font-size: 14px;
  }

  .empty-content p {
    font-size: 12px;
  }

  .btn-schedule {
    font-size: 12px;
    padding: 8px 12px;
    width: 100%;
  }

  /* Sidebar - stack on small screens */
  .dashboard-sidebar {
    width: 100%;
  }

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

  .sidebar-header h2 {
    font-size: 14px;
  }

  .badge-count {
    font-size: 11px;
    padding: 2px 6px;
  }

  .history-card {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
  }

  .history-header {
    margin-bottom: 4px;
  }

  .history-date {
    font-size: 9px;
  }

  .history-title {
    font-size: 12px;
    margin-bottom: 3px;
  }

  .history-desc {
    font-size: 10px;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .history-footer {
    gap: 4px;
    row-gap: 6px;
  }

  .history-footer .summary-link {
    font-size: 11px;
    margin-top: 4px;
  }

  .view-all-history {
    margin-top: 12px;
    text-align: center;
  }

  .view-all-history a {
    font-size: 11px;
  }

  /* Loading spinner */
  .loading-spinner-container {
    margin: 30px auto;
    max-width: 100%;
    padding: 0 16px;
  }

  .loading-text {
    font-size: 14px;
  }
}

/* ================================
   PATIENT DETAILS MODAL STYLES
   ================================ */

.patient-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.patient-details-modal .modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 1400px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.patient-details-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 2px solid #3b82f6;
  background: white;
  color: #0f172a;
  border-radius: 16px 16px 0 0;
}

.patient-details-modal .modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3b82f6;
  flex: 1;
  margin-right: 16px;
}

.patient-details-modal .modal-title i {
  font-size: 18px;
}

.patient-details-modal .modal-close {
  background: transparent;
  border: 2px solid #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 16px;
  transition: all 0.2s;
}

.patient-details-modal .modal-close:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
  transform: scale(1.05);
}

.patient-details-modal .modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

/* Modal Stats Cards */
.modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.modal-stat-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.modal-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modal-stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
}

.modal-stat-card .stat-icon.blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.modal-stat-card .stat-icon.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.modal-stat-card .stat-icon.orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.modal-stat-card .stat-content {
  flex: 1;
}

.modal-stat-card .stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
}

.modal-stat-card .stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* Boards Timeline */
.boards-timeline {
  margin-top: 32px;
}

.board-timeline-item {
  display: flex;
  gap: 24px;
  position: relative;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}

.marker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #cbd5e1;
  background: white;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.marker-dot.completed {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.marker-dot.in-progress {
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.1);
  }
}

.marker-dot.not-started {
  background: white;
  border-color: #cbd5e1;
}

.marker-line {
  width: 2px;
  flex: 1;
  background: #e2e8f0;
  margin-top: 8px;
  min-height: 40px;
}

.timeline-content {
  flex: 1;
  padding-bottom: 32px;
}

/* Board Card in Modal */
.board-card-modal {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
}

.board-card-modal:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.board-card-modal[ng-click] {
  cursor: pointer;
}

.board-header-modal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.board-collapse-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #64748b;
  margin-left: auto;
}

.board-collapse-btn:hover {
  background: #e2e8f0;
  color: #3b82f6;
  border-color: #cbd5e1;
}

.board-collapse-btn i {
  font-size: 14px;
  transition: transform 0.2s;
}

.board-collapsible-content {
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.board-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.board-time-badge i {
  font-size: 12px;
}

.board-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.board-status-badge.completed {
  background: #d1fae5;
  color: #065f46;
}

.board-status-badge.in-progress {
  background: #fef3c7;
  color: #92400e;
}

.board-status-badge.not-started {
  background: #f1f5f9;
  color: #475569;
}

.board-title-modal {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.board-title-modal i {
  color: #3b82f6;
  font-size: 18px;
}

.board-description-modal {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.board-meta-modal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.board-meta-modal .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.board-meta-modal .meta-item i {
  color: #94a3b8;
  font-size: 14px;
}

/* Patients Section */
.patients-section {
  margin-top: 24px;
}

.patients-header {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.patients-header i {
  color: #3b82f6;
}

.patient-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 20px;
}

/* Patient Card in Modal */
.patient-card-modal {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.2s;
}

.patient-card-modal:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.patient-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.patient-card-modal .patient-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.patient-card-modal .patient-avatar.encrypted {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

/* Extra Small Devices (< 360px - older/smaller phones) */
@media (max-width: 360px) {
  * {
    -webkit-text-size-adjust: 100%;
  }

  html, body {
    font-size: 14px;
  }

  .simple-hero {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .hero-content {
    gap: 8px;
  }

  .hero-greeting {
    font-size: 18px;
    line-height: 1.25;
  }

  .hero-date {
    font-size: 9px;
  }

  .hero-name {
    font-size: 17px;
  }

  .hero-stats {
    gap: 8px;
  }

  .hero-stat-item {
    min-width: 100%;
  }

  .hero-stat-label {
    font-size: 8px;
  }

  .hero-stat-value {
    font-size: 16px;
  }

  .hero-stat-desc {
    font-size: 11px;
  }

  .hero-cta {
    padding: 6px 10px;
    font-size: 10px;
    width: 100%;
  }

  .today-meeting-card {
    padding: 10px;
    gap: 6px;
    margin-bottom: 10px;
  }

  .card-time {
    font-size: 9px;
  }

  .card-title {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .card-description {
    font-size: 10px;
  }

  .diagnosis-pill {
    font-size: 9px;
    padding: 2px 4px;
  }

  .card-status-tag {
    font-size: 8px;
    padding: 2px 4px;
  }

  .card-footer {
    gap: 6px;
  }

  .attendees-badge,
  .patients-badge {
    font-size: 9px;
    padding: 3px 5px;
  }

  .avatar-small {
    width: 18px;
    height: 18px;
    font-size: 7px;
  }

  .patient-badge {
    font-size: 9px;
    padding: 2px 4px;
  }

  .btn-join-meeting {
    font-size: 10px;
    padding: 5px;
  }

  .section-header {
    gap: 8px;
    margin-bottom: 10px;
  }

  .section-header h2 {
    font-size: 13px;
  }

  .indicator-bar {
    width: 3px;
    height: 18px;
  }

  .btn-create-board,
  .view-calendar-link {
    font-size: 10px;
  }

  .meeting-card.empty-state {
    gap: 10px;
    padding: 16px 10px;
  }

  .empty-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .empty-content h3 {
    font-size: 13px;
  }

  .empty-content p {
    font-size: 11px;
  }

  .view-more-card {
    padding: 10px;
    margin-top: 8px;
  }

  .view-more-icon {
    width: 32px;
    height: 32px;
  }

  .view-more-icon i {
    font-size: 12px;
  }

  .view-more-text h3 {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .view-more-text p {
    font-size: 10px;
  }

  .sidebar-header h2 {
    font-size: 12px;
  }

  .history-card {
    padding: 8px;
    margin-bottom: 6px;
  }

  .history-title {
    font-size: 11px;
  }

  .history-desc {
    font-size: 9px;
  }

  .history-date {
    font-size: 8px;
  }

  .history-footer {
    gap: 3px;
  }

  .summary-link {
    font-size: 10px;
  }

  .view-all-history a {
    font-size: 10px;
  }
}

.patient-basic-info {
  flex: 1;
  min-width: 0;
}

.patient-name {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.patient-name.encrypted-text {
  color: #64748b;
}

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

.patient-mrn {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  font-family: 'Courier New', monospace;
  font-weight: 500;
}

.patient-diagnosis {
  margin: 8px 0 12px 0;
  display: flex;
  align-items: center;
}

.diagnosis-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  line-height: 1.2;
}

.diagnosis-pill i {
  font-size: 12px;
  color: inherit;
}

.diagnosis-pill-empty {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
}

.patient-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.patient-details-grid .detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}

.patient-details-grid .detail-item i {
  color: #94a3b8;
  font-size: 13px;
  width: 16px;
}

.patient-clinical-info {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clinical-section {
  background: white;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.clinical-section h6 {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clinical-section h6 i {
  color: #3b82f6;
  font-size: 13px;
}

.clinical-section .clinical-text {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.patient-encrypted-notice {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
}

.patient-encrypted-notice i {
  color: #d97706;
  font-size: 18px;
  margin-top: 2px;
}

.patient-encrypted-notice p {
  font-size: 13px;
  color: #92400e;
  line-height: 1.6;
  margin: 0;
}

.patient-pdf-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  position: relative;
}

.patient-pdf-error i {
  color: #dc2626;
  font-size: 16px;
  flex-shrink: 0;
}

.patient-pdf-error p {
  font-size: 12px;
  color: #991b1b;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.error-dismiss-btn {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.error-dismiss-btn:hover {
  color: #991b1b;
}

.patient-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  align-items: stretch;
}

.view-patient-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  flex: 1;
  justify-content: center;
}

.view-patient-btn:hover {
  color: white;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.generate-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #dc2626;
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.generate-pdf-btn:hover:not(:disabled) {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.generate-pdf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.view-board-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
}

.view-board-btn:hover {
  background: white;
  color: #3b82f6;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.no-patients-notice {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

.no-patients-notice i {
  color: #94a3b8;
  font-size: 24px;
  margin-bottom: 8px;
}

.no-patients-notice p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.empty-state-modal {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-modal i {
  font-size: 64px;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.empty-state-modal h3 {
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.empty-state-modal p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* Responsive Modal Styles */
@media (max-width: 1200px) {
  .patient-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .patient-details-modal {
    padding: 10px;
  }
  
  .patient-details-modal .modal-content {
    max-width: 100%;
    max-height: 95vh;
  }
  
  .patient-details-modal .modal-header {
    padding: 20px;
  }
  
  .patient-details-modal .modal-title {
    font-size: 18px;
  }
  
  .patient-details-modal .modal-body {
    padding: 20px;
  }
  
  .modal-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .board-timeline-item {
    gap: 16px;
  }
  
  .timeline-marker {
    padding-top: 6px;
  }
  
  .marker-dot {
    width: 12px;
    height: 12px;
  }
  
  .board-card-modal {
    padding: 16px;
  }
  
  .patient-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .patient-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .patient-details-modal .modal-title {
    font-size: 16px;
  }
  
  .board-header-modal {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .board-title-modal {
    font-size: 16px;
  }
  
  .modal-stat-card {
    padding: 16px;
  }
  
  .modal-stat-card .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .modal-stat-card .stat-number {
    font-size: 20px;
  }
}

