/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  overflow-x: hidden;
}

/* Top Navigation Bar */
.epic-topbar {
  background: linear-gradient(180deg, #0056a3 0%, #003d7a 100%);
  color: white;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.epic-logo {
  font-size: 22px;
  font-weight: bold;
  margin-right: 25px;
  letter-spacing: -0.5px;
}

.epic-nav {
  display: flex;
  gap: 5px;
  flex: 1;
}

.nav-item {
  color: white;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 3px;
  transition: background 0.2s;
  cursor: pointer;
  user-select: none;
}

.nav-item:hover {
  background: rgba(255,255,255,0.15);
}

.nav-item.active {
  background: rgba(255,255,255,0.25);
  font-weight: 600;
}

.user-info {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 15px;
  border-left: 1px solid rgba(255,255,255,0.3);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4a90e2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

/* Patient Banner */
.patient-banner {
  background: linear-gradient(180deg, #fff8e1 0%, #fff3cd 100%);
  border-bottom: 3px solid #ff9800;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.patient-main-info {
  flex: 1;
}

.patient-name-bar {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.patient-status-badge {
  background: #4caf50;
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

.allergy-badge {
  background: #f44336;
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 10px;
}

.patient-details-bar {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #333;
  flex-wrap: wrap;
}

.patient-detail-item {
  display: flex;
  gap: 5px;
}

.detail-label {
  font-weight: 600;
  color: #555;
}

.banner-btn {
  background: #0056a3;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  margin-left: 8px;
  transition: all 0.2s;
}

.banner-btn:hover {
  background: #004080;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,86,163,0.3);
}

/* Main Container */
.epic-container {
  display: flex;
  height: calc(100vh - 155px);
}

/* Sidebar Navigation */
.epic-sidebar {
  width: 220px;
  background: #e8eaed;
  border-right: 1px solid #ccc;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-section {
  border-bottom: 1px solid #d0d0d0;
}

.sidebar-header {
  background: #d5d8dc;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sidebar-item {
  padding: 9px 12px 9px 20px;
  font-size: 13px;
  cursor: pointer;
  color: #333;
  border-bottom: 1px solid #ddd;
  transition: background 0.2s;
  position: relative;
  user-select: none;
}

.sidebar-item:hover {
  background: #dfe1e5;
}

.sidebar-item.active {
  background: #c5e1f5;
  border-left: 4px solid #0056a3;
  font-weight: 600;
  padding-left: 16px;
}

/* Chart Content Area */
.chart-content {
  flex: 1;
  background: white;
  overflow-y: auto;
  padding: 20px 25px;
}

/* Section Styling */
.chart-section {
  margin-bottom: 30px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.section-header {
  font-size: 16px;
  font-weight: 700;
  color: #0056a3;
  background: #f8f9fa;
  border-bottom: 2px solid #0056a3;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-actions {
  display: flex;
  gap: 8px;
}

.section-btn {
  background: #0056a3;
  color: white;
  border: none;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
}

.section-btn:hover {
  background: #004080;
}

.section-btn-secondary {
  background: #6c757d;
}

.section-btn-secondary:hover {
  background: #5a6268;
}

.section-body {
  padding: 15px;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px 20px;
  font-size: 14px;
}

.info-label {
  font-weight: 600;
  color: #555;
}

.info-value {
  color: #1a1a1a;
}

/* Table Styling */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  background: #f0f2f5;
  padding: 10px;
  text-align: left;
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid #ccc;
}

.data-table td {
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.data-table tr:hover {
  background: #f8f9fa;
  cursor: pointer;
}

/* Call History Specific */
.call-item {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  transition: background 0.2s;
}

.call-item:hover {
  background: #f8f9fa;
}

.call-item:last-child {
  border-bottom: none;
}

.call-main {
  flex: 1;
}

.call-time {
  font-weight: 600;
  color: #0056a3;
  margin-bottom: 4px;
  font-size: 13px;
}

.call-details {
  font-size: 12px;
  color: #666;
}

.call-status {
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 5px;
  display: inline-block;
}

.call-status.incoming {
  background: #e3f2fd;
  color: #1565c0;
}

.call-status.outgoing {
  background: #f3e5f5;
  color: #6a1b9a;
}

.call-status.missed {
  background: #ffebee;
  color: #c62828;
}

.call-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

/* Notes Section */
.note-item {
  background: #fffbf0;
  border-left: 4px solid #ff9800;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 3px;
}

.note-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: #666;
}

.note-author {
  font-weight: 600;
  color: #333;
}

.note-content {
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.5;
}

/* Vitals Display */
.vitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.vital-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 12px;
  text-align: center;
}

.vital-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 5px;
}

.vital-value {
  font-size: 24px;
  font-weight: 700;
  color: #0056a3;
}

.vital-unit {
  font-size: 12px;
  color: #666;
  margin-left: 3px;
}

.vital-status {
  font-size: 11px;
  margin-top: 5px;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
}

.vital-status.normal {
  background: #d4edda;
  color: #155724;
}

.vital-status.elevated {
  background: #fff3cd;
  color: #856404;
}

.vital-status.high {
  background: #f8d7da;
  color: #721c24;
}

/* Appointment Card */
.appointment-card {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 3px;
}

.appointment-time {
  font-weight: 700;
  color: #2e7d32;
  font-size: 14px;
  margin-bottom: 5px;
}

.appointment-details {
  font-size: 13px;
  color: #333;
}

/* Alert Boxes */
.alert-box {
  padding: 12px 15px;
  margin-bottom: 15px;
  border-radius: 4px;
  font-size: 13px;
  border-left: 4px solid;
}

.alert-danger {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.alert-warning {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.alert-info {
  background: #d1ecf1;
  border-color: #17a2b8;
  color: #0c5460;
}

.alert-title {
  font-weight: 700;
  margin-bottom: 5px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.3;
}

/* Screen Pop Overlay */
.screen-pop-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  animation: fadeIn 0.2s ease-out;
}

.screen-pop {
  position: fixed;
  top: 100px;
  right: 30px;
  width: 420px;
  background: white;
  border: 3px solid #ff9800;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  animation: slideInRight 0.3s ease-out;
  max-height: calc(100vh - 120px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pop-header {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f57c00;
}

.pop-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-icon {
  width: 24px;
  height: 24px;
  background: white;
  color: #ff9800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.pop-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.pop-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.pop-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.pop-patient-name {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.pop-patient-id {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

.pop-info-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 4px;
}

.pop-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid #e9ecef;
}

.pop-info-row:last-child {
  border-bottom: none;
}

.pop-info-label {
  font-weight: 600;
  color: #495057;
}

.pop-info-value {
  color: #212529;
  text-align: right;
}

.pop-buttons {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #dee2e6;
}

.pop-btn {
  flex: 1;
  padding: 11px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}

.pop-btn-primary {
  background: #0056a3;
  color: white;
}

.pop-btn-primary:hover {
  background: #004080;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,86,163,0.3);
}

.pop-btn-secondary {
  background: #6c757d;
  color: white;
}

.pop-btn-secondary:hover {
  background: #5a6268;
}

/* Form Styles */
.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #333;
  margin-bottom: 5px;
}

.form-label .required {
  color: #dc3545;
}

.form-control {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #0056a3;
  box-shadow: 0 0 0 3px rgba(0,86,163,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.modal-dialog {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: slideInUp 0.3s ease-out;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 2px solid #0056a3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.modal-header h3 {
  color: #0056a3;
  font-size: 18px;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #e0e0e0;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8f9fa;
}

/* Button Styles */
.btn-primary {
  background: #0056a3;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #004080;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,86,163,0.3);
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #5a6268;
}

/* Search Results */
.search-result-item {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.search-result-name {
  font-weight: 600;
  color: #0056a3;
  margin-bottom: 4px;
}

.search-result-details {
  font-size: 12px;
  color: #666;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.3; }
}

.blinking {
  animation: blink 1.2s ease-in-out 3;
}

/* Responsive */
@media (max-width: 1200px) {
  .epic-sidebar { width: 180px; }
  .info-grid { grid-template-columns: 140px 1fr; }
  .screen-pop { width: 380px; }
}

@media (max-width: 768px) {
  .patient-details-bar { flex-direction: column; gap: 8px; }
  .epic-sidebar { width: 160px; }
  .screen-pop { right: 10px; width: calc(100% - 20px); }
}/* Add this to your existing styles.css or create a new one */

/* ============= EPIC BUTTON STYLES ============= */
.epic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  white-space: nowrap;
  gap: 6px;
}

.epic-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.epic-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.epic-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Primary Button - Blue (Main actions) */
.epic-btn-primary {
  background: linear-gradient(180deg, #0078d4 0%, #0066b8 100%);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.epic-btn-primary:hover {
  background: linear-gradient(180deg, #0066b8 0%, #005a9e 100%);
}

/* Secondary Button - Gray (Cancel, alternative actions) */
.epic-btn-secondary {
  background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #374151;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.epic-btn-secondary:hover {
  background: linear-gradient(180deg, #e5e7eb 0%, #d1d5db 100%);
  border-color: #9ca3af;
}

/* Success Button - Green (Save, confirm) */
.epic-btn-success {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.epic-btn-success:hover {
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
}

/* Danger Button - Red (Delete, remove) */
.epic-btn-danger {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.epic-btn-danger:hover {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
}

/* Warning Button - Orange (Caution actions) */
.epic-btn-warning {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.epic-btn-warning:hover {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
}

/* Small Button Variant */
.epic-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Large Button Variant */
.epic-btn-lg {
  padding: 12px 24px;
  font-size: 14px;
}

/* Button with Icon */
.epic-btn-icon {
  padding: 8px 12px;
}

/* ============= UPDATE EXISTING STYLES ============= */

/* Replace old action-btn styles */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(180deg, #0078d4 0%, #0066b8 100%);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  gap: 6px;
}

.action-btn:hover {
  background: linear-gradient(180deg, #0066b8 0%, #005a9e 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Replace old section-btn styles */
.section-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(180deg, #0078d4 0%, #0066b8 100%);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.section-btn:hover {
  background: linear-gradient(180deg, #0066b8 0%, #005a9e 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.section-btn-secondary {
  background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #374151;
  border: 1px solid #d1d5db;
}

.section-btn-secondary:hover {
  background: linear-gradient(180deg, #e5e7eb 0%, #d1d5db 100%);
  border-color: #9ca3af;
}

.section-btn-danger {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.section-btn-danger:hover {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
}

/* ============= FORM CONTROLS ============= */
.form-control {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #0078d4;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-group {
  margin-bottom: 16px;
}

/* ============= MODAL STYLES ============= */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid #e5e7eb;
}

/* ============= NOTIFICATION STYLES ============= */
.epic-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: white;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #0078d4;
  z-index: 10000;
  min-width: 300px;
  max-width: 500px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.epic-notification-success {
  border-left-color: #10b981;
}

.epic-notification-error {
  border-left-color: #ef4444;
}

.epic-notification-warning {
  border-left-color: #f59e0b;
}

.notification-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  background: #e0f2fe;
  color: #0078d4;
}

.epic-notification-success .notification-icon {
  background: #d1fae5;
  color: #10b981;
}

.epic-notification-error .notification-icon {
  background: #fee2e2;
  color: #ef4444;
}

.epic-notification-warning .notification-icon {
  background: #fef3c7;
  color: #f59e0b;
}

/* ============= SECTION HEADER IMPROVEMENTS ============= */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  border-bottom: 2px solid #e5e7eb;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.section-actions {
  display: flex;
  gap: 8px;
}

/* ============= CARD IMPROVEMENTS ============= */
.summary-card,
.medication-card,
.allergy-card,
.imaging-card,
.appointment-card,
.notation-card,
.problem-card {
  border-radius: 6px;
  transition: box-shadow 0.2s ease;
}

.summary-card:hover,
.medication-card:hover,
.allergy-card:hover,
.imaging-card:hover,
.appointment-card:hover,
.notation-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============= TABLE IMPROVEMENTS ============= */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead {
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.data-table tr:hover {
  background-color: #f9fafb;
}

/* ============= STATUS BADGES ============= */
.call-type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.call-type-incoming {
  background: #dbeafe;
  color: #1e40af;
}

.call-type-outgoing {
  background: #d1fae5;
  color: #065f46;
}

.call-type-missed {
  background: #fee2e2;
  color: #991b1b;
}

.lab-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.lab-status-normal {
  background: #d1fae5;
  color: #065f46;
}

.lab-status-high {
  background: #fee2e2;
  color: #991b1b;
}

.lab-status-low {
  background: #fef3c7;
  color: #92400e;
}

/* ============= SCREEN POP ANIMATIONS ============= */
#screenPop {
  animation: none;
}

#screenPop.blinking {
  animation: epicBlink 0.6s ease-in-out 6;
}

@keyframes epicBlink {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(0, 120, 212, 0.3);
  }
  50% {
    box-shadow: 0 12px 48px rgba(0, 120, 212, 0.6);
  }
}