/**
 * rtl.css - Arabic (RTL) High-Contrast Layout & Typography Rules
 * Dr. Abdullah Al-Hawas Veterinary Clinic (عيادة الدكتور عبدالله الحواس البيطرية)
 */

[dir="rtl"], body.rtl-mode {
  font-family: 'Cairo', 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif !important;
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .modal-footer {
  justify-content: flex-start;
}

[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .search-box {
  flex-direction: row;
}

[dir="rtl"] .toast-success {
  border-left: none;
  border-right: 4px solid #15803d;
}

[dir="rtl"] .toast-danger {
  border-left: none;
  border-right: 4px solid #b91c1c;
}

[dir="rtl"] .toast-warning {
  border-left: none;
  border-right: 4px solid #b45309;
}

[dir="rtl"] .toast-info {
  border-left: none;
  border-right: 4px solid #1d4ed8;
}

#toast-container[dir="rtl"], body.rtl-mode #toast-container {
  right: auto;
  left: 20px;
}

[dir="rtl"] .data-table th,
[dir="rtl"] .data-table td,
[dir="rtl"] .clean-table th,
[dir="rtl"] .clean-table td {
  text-align: right;
}

[dir="rtl"] .bubble-owner {
  justify-content: flex-start;
}

[dir="rtl"] .bubble-clinic {
  justify-content: flex-end;
}

[dir="rtl"] .bubble-owner .chat-bubble {
  border-bottom-right-radius: var(--radius-lg);
  border-bottom-left-radius: 4px;
}

[dir="rtl"] .bubble-clinic .chat-bubble {
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: 4px;
}
