/* PSYCHIZEN PROFESSIONAL HEALTHCARE PANELS (PSYCHOLOGIST & PSYCHIATRIST) - ULTRA MODERN CLINICAL SUITE */

/* 1. Sanctuary Hero Banner */
.pro-banner {
  background: linear-gradient(135deg, #09332c 0%, #174C46 50%, #1b6058 100%);
  color: #FFFFFF;
  padding: 32px 36px;
  border-radius: 18px;
  margin-bottom: var(--space-xl);
  box-shadow: 0 10px 30px -5px rgba(23, 76, 70, 0.25), 0 4px 12px -2px rgba(23, 76, 70, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pro-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.pro-banner::after {
  content: "Ψ";
  position: absolute;
  right: -25px;
  bottom: -45px;
  font-size: 13rem;
  color: rgba(255, 255, 255, 0.04);
  font-family: var(--font-heading);
  pointer-events: none;
  line-height: 1;
}

/* 2. Standardized Clinical Badges */
.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
  white-space: nowrap;
}

.pro-badge-verified {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
  color: #FDE68A;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.pro-badge-teal {
  background: #F0FDF4;
  color: #065F46;
  border: 1px solid #BBF7D0;
}

.pro-badge-indigo {
  background: #EEF2FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
}

.pro-badge-amber {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.pro-badge-medical {
  background: #F0F9FF;
  color: #0284C7;
  border: 1px solid #BAE6FD;
}

.pro-badge-alert,
.pro-badge-danger {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

/* 3. Stat Cards KPI Grid */
.pro-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: var(--space-xl);
}

.pro-stat-card {
  background: #FFFFFF;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pro-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.pro-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(23, 76, 70, 0.12), 0 4px 12px -2px rgba(23, 76, 70, 0.06);
  border-color: #CBD5E1;
}

.pro-stat-card:hover::before {
  background: linear-gradient(90deg, #10B981, #059669);
}

.pro-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pro-stat-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pro-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pro-stat-value {
  font-size: 2.1rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.1;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.pro-stat-sub {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.4;
}

/* 4. Split Workspace Layout */
.pro-workspace-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: var(--space-2xl);
}

@media (max-width: 1024px) {
  .pro-workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* 5. Core Cards */
.pro-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pro-card:hover {
  border-color: #CBD5E1;
}

.pro-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.pro-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 6. Interactive List Items */
.pro-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #CBD5E1;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #FFFFFF;
  transition: all 0.2s ease;
}

.pro-list-item:hover {
  border-color: #94A3B8;
  border-left-color: #059669;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transform: translateX(2px);
}

.pro-item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 7. Clinical Navigation Tabs */
.pro-nav-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pro-nav-tabs::-webkit-scrollbar {
  display: none;
}

.pro-nav-tab {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748B;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.18s ease;
  white-space: nowrap;
  border-radius: 8px 8px 0 0;
}

.pro-nav-tab:hover {
  color: #0F172A;
  background: #F8FAFC;
}

.pro-nav-tab.active {
  color: #065F46;
  border-bottom-color: #059669;
  background: #F0FDF4;
}

/* 8. Session Timer Widget */
.session-timer-widget {
  background: linear-gradient(135deg, #062b25 0%, #0d443c 100%);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(6, 78, 59, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.session-timer-display {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #34D399;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}

/* 9. SOAP Documentation Boxes */
.soap-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #0D9488;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.soap-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0F766E;
  margin-bottom: 6px;
  display: block;
}

/* 10. Form Controls Refinements */
.form-control {
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: #0F172A;
  background-color: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: #0F766E;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

/* 11. Allergy & Safety Alerts */
.allergy-alert-banner {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  border-left: 5px solid #DC2626;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.allergy-pill {
  display: inline-block;
  background: #FEE2E2;
  color: #991B1B;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #FCA5A5;
}

/* 12. Printable Prescription View Styles */
.prescription-canvas {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  max-width: 860px;
  margin: 0 auto;
  font-family: 'Times New Roman', Times, serif;
}

.rx-clinic-header {
  border-bottom: 2px solid #1C2826;
  padding-bottom: 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.rx-symbol {
  font-size: 2.4rem;
  font-weight: 900;
  font-style: italic;
  font-family: serif;
  color: #174C46;
  margin: 16px 0;
}

.rx-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: var(--font-primary);
  font-size: 0.92rem;
}

.rx-table th {
  background: #F8FAFC;
  border-top: 1px solid #1C2826;
  border-bottom: 1px solid #1C2826;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
}

.rx-table td {
  padding: 14px;
  border-bottom: 1px solid #E2E8F0;
  vertical-align: top;
}

.rx-signature-block {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 24px;
  border-top: 1px dashed #CBD5E1;
}

@media print {
  body * {
    visibility: hidden;
  }
  .prescription-canvas, .prescription-canvas * {
    visibility: visible;
  }
  .prescription-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .no-print {
    display: none !important;
  }
}

/* 13. Professional Clean Data Tables */
.pro-table-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pro-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  color: #1E293B;
}

.pro-table thead th {
  background: #F8FAFC;
  padding: 12px 16px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
}

.pro-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
  transition: background-color 0.12s ease;
}

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

.pro-table tbody tr:hover td {
  background-color: #F8FAFC;
}

/* 14. Modern Floating Modals */
.pro-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  animation: proModalFadeIn 0.2s ease-out;
}

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

.pro-modal-box {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: proModalSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes proModalSlideUp {
  from { transform: translateY(18px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.pro-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAFAFA;
}

.pro-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  font-family: var(--font-heading);
}

.pro-modal-close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pro-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.pro-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.pro-modal-footer {
  padding: 16px 24px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 15. Screener Batteries Card */
.screener-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.screener-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #174C46;
  opacity: 0.8;
}

.screener-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(23, 76, 70, 0.12);
  border-color: #94A3B8;
}

/* 16. Care Plan Progress Bar & Milestones */
.cbt-progress-track {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
  margin: 8px 0;
}

.cbt-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #059669);
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 17. Calendar Styling */
.cal-grid-cell {
  min-height: 96px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.cal-grid-cell:hover {
  border-color: #94A3B8;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.cal-grid-cell.is-today {
  background: #F0FDF4;
  border: 2px solid #059669;
}

.cal-day-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.cal-grid-cell.is-today .cal-day-num {
  color: #065F46;
  font-weight: 800;
}

.cal-event-pill {
  display: block;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
  transition: opacity 0.15s ease;
}

.cal-event-pill:hover {
  opacity: 0.88;
}

.cal-event-video {
  background: #DCFCE7;
  color: #166534;
  border-left: 3px solid #16A34A;
}

.cal-event-audio {
  background: #EEF2FF;
  color: #3730A3;
  border-left: 3px solid #4F46E5;
}

.cal-event-chat {
  background: #FEF3C7;
  color: #92400E;
  border-left: 3px solid #D97706;
}

/* 18. Empty State Container */
.pro-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #64748B;
}

.pro-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px auto;
}

.pro-empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
}

.pro-empty-desc {
  font-size: 0.88rem;
  color: #64748B;
  max-width: 440px;
  margin: 0 auto 18px auto;
  line-height: 1.5;
}
