/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #f6f8fa;
  min-height: 100vh;
  color: #24292f;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 30px;
  color: #24292f;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e4e8;
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0969da;
}

.subtitle {
  font-size: 0.95rem;
  color: #656d76;
  font-weight: 400;
}

/* Main content */
.main-content {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e4e8;
}

/* Status indicator */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #dbeafe;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  margin-bottom: 20px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #0969da;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.status-text {
  color: #0969da;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Patient card */
.patient-card {
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: white;
}

.patient-header {
  background: #0969da;
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e1e4e8;
}

.patient-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.patient-ids {
  display: flex;
  gap: 10px;
}

.id-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.patient-content {
  padding: 25px;
}

/* Encounter card */
.encounter-card {
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: white;
}

.encounter-header {
  background: #059669;
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e1e4e8;
}

.encounter-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.encounter-ids {
  display: flex;
  gap: 10px;
}

.encounter-content {
  padding: 25px;
}

/* Provider and facility info */
.provider-info h4,
.facility-info h4,
.specialty-info h4,
.diagnosis-info h4 {
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 16px 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #e5e7eb;
}

.specialty-item,
.diagnosis-item {
  background: #f9fafb;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  margin-bottom: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.specialty-item:last-child,
.diagnosis-item:last-child {
  margin-bottom: 0;
}

.specialty-item small {
  color: #6b7280;
  font-size: 0.75rem;
  margin-top: 4px;
  display: inline-block;
}

.diagnosis-item strong {
  color: #059669;
  font-weight: 600;
}

.procedure-item {
  background: #f9fafb;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  margin-bottom: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.procedure-item:last-child {
  margin-bottom: 0;
}

.procedure-item strong {
  color: #7c3aed;
  font-weight: 600;
}

.procedure-item small {
  color: #6b7280;
  font-size: 0.75rem;
  margin-top: 4px;
  display: inline-block;
}

/* Info sections */
.info-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e1e4e8;
}

.info-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.info-section h3 {
  color: #24292f;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.info-section h3:before {
  content: "";
  width: 3px;
  height: 16px;
  background: #0969da;
  margin-right: 8px;
  border-radius: 1px;
}

/* Essential Info (Always Visible) */
.essential-info {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #0284c7;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.1);
}

.essential-info .info-grid {
  margin-bottom: 0;
}

.essential-info .info-item span {
  background: white;
  border: 1px solid #0284c7;
  font-weight: 500;
  color: #0c4a6e;
}

.essential-info .info-item label {
  color: #0369a1;
  font-weight: 600;
}

/* Collapsible Sections */
.collapsible-section {
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.section-header {
  background: #f8fafc;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  user-select: none;
}

.section-header:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-header.expanded {
  background: #e0f2fe;
  border-bottom-color: #0284c7;
}

.section-header h3 {
  margin: 0;
  color: #1e293b;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  position: relative;
}

.section-header h3:before {
  content: "";
  width: 3px;
  height: 16px;
  background: #0284c7;
  margin-right: 8px;
  border-radius: 1px;
}

.section-header h3:after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.section-header.has-content h3:after {
  opacity: 1;
}

.expand-icon {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: bold;
  transition: all 0.3s ease;
  transform-origin: center;
}

.section-header:hover .expand-icon {
  color: #475569;
}

.section-header.expanded .expand-icon {
  transform: rotate(180deg);
}

.section-content {
  padding: 20px;
  background: white;
}

.section-content:not([style*="display: none"]) {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-item label {
  font-weight: 500;
  color: #6b7280;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-item span {
  color: #24292f;
  font-size: 0.875rem;
  padding: 6px 10px;
  background: #f6f8fa;
  border-radius: 4px;
  border: 1px solid #e1e4e8;
}

.address-content {
  background: #f9fafb;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.address-content p {
  margin: 0;
  line-height: 1.5;
}

.pcp-info {
  background: #fef3c7;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #f59e0b;
}

/* Test controls */
.test-controls {
  background: #f6f8fa;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #e1e4e8;
  margin-top: 20px;
}

.test-controls h3 {
  color: #24292f;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.test-controls h4 {
  color: #24292f;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.test-controls p {
  color: #656d76;
  margin-bottom: 8px;
  font-size: 0.8125rem;
}

.test-controls code {
  background: #24292f;
  color: #e6edf3;
  padding: 4px 6px;
  border-radius: 3px;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
    "Courier New", monospace;
  font-size: 0.8125rem;
  display: inline;
}

.test-controls button {
  background: #0969da;
  color: white;
  border: 1px solid transparent;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8125rem;
  transition: all 0.15s ease;
  margin: 2px;
}

.test-controls button:hover {
  background: #0860ca;
  border-color: #0860ca;
}

.test-controls button[onclick*="clearAllState"] {
  background: #dc2626;
  border-color: #dc2626;
}

.test-controls button[onclick*="clearAllState"]:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.test-controls button[onclick*="clearPatientState"],
.test-controls button[onclick*="clearEncounterState"] {
  background: #ea580c;
  border-color: #ea580c;
}

.test-controls button[onclick*="clearPatientState"]:hover,
.test-controls button[onclick*="clearEncounterState"]:hover {
  background: #c2410c;
  border-color: #c2410c;
}

.test-controls button[onclick*="setupDemoEHRCallback"] {
  background: #7c3aed;
  border-color: #7c3aed;
}

.test-controls button[onclick*="setupDemoEHRCallback"]:hover {
  background: #6d28d9;
  border-color: #6d28d9;
}

.test-controls button[onclick*="testUpdate"] {
  background: #059669;
  border-color: #059669;
}

.test-controls button[onclick*="testUpdate"]:hover {
  background: #047857;
  border-color: #047857;
}

.test-controls button[onclick*="testUpdateError"] {
  background: #dc2626;
  border-color: #dc2626;
}

.test-controls button[onclick*="testUpdateError"]:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/* Writeback Status Display */
.writeback-status {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.writeback-status h4 {
  color: #1e293b;
  margin-bottom: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Update Controls */
.update-controls {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.update-controls h3 {
  color: #1e293b;
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
}

.update-controls p {
  color: #6b7280;
  margin: 0 0 20px 0;
  font-size: 0.875rem;
}

.update-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.update-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.update-section h4 {
  color: #374151;
  margin: 0 0 12px 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.input-group {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.input-group input,
.input-group textarea {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
}

.update-button {
  background: #059669;
  color: white;
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.update-button:hover {
  background: #047857;
  transform: translateY(-1px);
}

.update-button:active {
  transform: translateY(0);
}

/* Update EHR Tab Select Dropdowns */
.update-section select {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
  min-width: 300px;
}

.update-section select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.update-section select option {
  padding: 0.5rem;
}

.update-section .input-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.update-section .update-button {
  padding: 0.75rem 1.5rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.update-section .update-button:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-1px);
}

.update-section .update-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.status-content {
  background: white;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

/* Writeback status indicator - small dot style */
.writeback-status .status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #64748b;
}

.writeback-status .status-indicator.success {
  background: #10b981;
}

.writeback-status .status-indicator.error {
  background: #ef4444;
}

.writeback-status .status-indicator.pending {
  background: #f59e0b;
  animation: pulse 2s infinite;
}

.writeback-status .status-text {
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

.payload-display {
  padding: 20px;
}

.payload-display h5 {
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 16px 0 8px 0;
}

.payload-display h5:first-child {
  margin-top: 0;
}

.payload-display pre {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 12px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #374151;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 200px;
  overflow-y: auto;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .patient-header,
  .encounter-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 20px;
  }

  .essential-info {
    padding: 16px;
  }

  .section-header {
    padding: 14px 16px;
  }

  .section-content {
    padding: 16px;
  }
}

/* Success/Error states */
.status-indicator.success {
  background: #dcfce7;
  border-color: #16a34a;
}

.status-indicator.success .status-dot {
  background: #16a34a;
}

.status-indicator.success .status-text {
  color: #166534;
}

.status-indicator.error {
  background: #fef1f2;
  border-color: #dc2626;
}

.status-indicator.error .status-dot {
  background: #dc2626;
}

.status-indicator.error .status-text {
  color: #991b1b;
}

/* Push Notification Styles */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  background: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  pointer-events: auto;
  border: 1px solid #e1e4e8;
  border-left: 3px solid #0969da;
  overflow: hidden;
}

.notification.notification-show {
  opacity: 1;
  transform: translateX(0);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 8px 16px;
  border-bottom: 1px solid #f1f3f4;
}

.notification-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.9rem;
}

.notification-time {
  font-size: 0.75rem;
  color: #6b7280;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.notification-close:hover {
  background: #f3f4f6;
  color: #6b7280;
}

.notification-body {
  padding: 8px 16px 12px 16px;
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.4;
}

.notification-actions {
  padding: 0 16px 12px 16px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.notification-action {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.notification-action:hover {
  background: #e5e7eb;
}

.notification-action:active {
  background: #d1d5db;
}

/* Notification type variants */
.notification-info {
  border-left-color: #3b82f6;
}

.notification-success {
  border-left-color: #10b981;
}

.notification-success .notification-title {
  color: #065f46;
}

.notification-warning {
  border-left-color: #f59e0b;
}

.notification-warning .notification-title {
  color: #92400e;
}

.notification-error {
  border-left-color: #ef4444;
}

.notification-error .notification-title {
  color: #991b1b;
}

.notification-error .notification-body {
  color: #7f1d1d;
}

/* Animation for stacking notifications */
.notification:nth-child(1) {
  z-index: 100;
}
.notification:nth-child(2) {
  z-index: 99;
}
.notification:nth-child(3) {
  z-index: 98;
}
.notification:nth-child(4) {
  z-index: 97;
}
.notification:nth-child(5) {
  z-index: 96;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .notification-container {
    left: 20px;
    right: 20px;
    max-width: none;
  }

  .notification {
    transform: translateY(-100%);
  }

  .notification.notification-show {
    transform: translateY(0);
  }
}

/* App Tabs */
.app-tabs {
  margin-bottom: 1.5rem;
}

.tab-header {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

.tab-button {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-button:hover {
  color: #3b82f6;
  background: #f8fafc;
}

.tab-button.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  background: #eff6ff;
}

.tab-button .tab-icon {
  font-size: 1rem;
}

.tab-button .tab-text {
  font-weight: 500;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Update EHR Tab */
#update-ehr-tab h2 {
  color: #1e293b;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

#update-ehr-tab p {
  color: #64748b;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

/* User Info Section */
.user-info-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.user-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.user-info-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.user-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-status .status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.user-status .status-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.user-info-item {
  background: white;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.user-info-item .info-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.user-info-item .info-value {
  font-size: 0.875rem;
  color: #1e293b;
  font-weight: 500;
}

/* SDK State Section */
.sdk-state-section {
  margin-top: 1rem;
  padding: 1rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.sdk-state-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.sdk-state-section .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.sdk-state-section .info-item {
  background: white;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.sdk-state-section .info-item label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  display: block;
  margin-bottom: 0.25rem;
}

.sdk-state-section .info-item span {
  font-size: 0.8rem;
  color: #334155;
  font-weight: 500;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
    "Courier New", monospace;
}

/* Status Indicator */
/* Assessment Controls */
.assessment-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.assessment-selection {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.assessment-selection select {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
}

.assessment-selection select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.assessment-selection .add-button {
  padding: 0.75rem 1.5rem;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.assessment-selection .add-button:hover {
  background: #059669;
}

.assessment-selection .add-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.current-assessments h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.assessment-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.assessment-item {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.assessment-item .code {
  font-family: monospace;
  font-weight: 600;
  color: #166534;
}

.assessment-item .description {
  color: #374151;
  font-size: 0.875rem;
}

.assessment-item .remove-button {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.assessment-item .remove-button:hover {
  background: #fef2f2;
}

/* Procedure Controls */
.current-procedures h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.procedure-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.procedure-item {
  background: #f0f9ff;
  border: 1px solid #7dd3fc;
  border-radius: 6px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.procedure-item .code {
  font-family: monospace;
  font-weight: 600;
  color: #0c4a6e;
}

.procedure-item .description {
  color: #374151;
  font-size: 0.875rem;
}

.procedure-item .remove-button {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.procedure-item .remove-button:hover {
  background: #fef2f2;
}
