@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #1e3a8a;
  --primary-hover: #1e40af;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f97316;
}

* {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
}

body {
  direction: rtl;
  background-color: #f8fafc;
  color: #1e293b;
  min-height: 100vh;
}

/* Accessibility Modes */
body.high-contrast {
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.high-contrast .bg-white,
body.high-contrast .bg-slate-50,
body.high-contrast .bg-slate-100 {
  background-color: #111111 !important;
  color: #ffffff !important;
  border-color: #444444 !important;
}

body.high-contrast a,
body.high-contrast button {
  outline: 2px solid #ffff00 !important;
}

body.large-font {
  font-size: 120% !important;
}

body.large-font h1 { font-size: 2.25rem !important; }
body.large-font h2 { font-size: 1.875rem !important; }
body.large-font h3 { font-size: 1.5rem !important; }
body.large-font p, body.large-font input, body.large-font button { font-size: 1.15rem !important; }

/* Timeline Custom Styling */
.timeline-item {
  position: relative;
  padding-right: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  right: 7px;
  top: 6px;
  bottom: -16px;
  width: 2px;
  background-color: #cbd5e1;
}
.timeline-item:last-child::before {
  display: none;
}
.timeline-dot {
  position: absolute;
  right: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #3b82f6;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px #cbd5e1;
}

/* Star Rating */
.star-btn {
  transition: transform 0.15s ease, color 0.15s ease;
}
.star-btn:hover {
  transform: scale(1.2);
}

/* Pulse Animation for Urgent / Overdue */
@keyframes urgent-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-urgent {
  animation: urgent-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Print Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  header, nav, .no-print, button, .accessibility-bar {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .card, .shadow-sm, .shadow-md {
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
  }
}
