html {
  font-size: 14px;
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  direction: rtl;
}

body {
  margin-bottom: 60px;
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

/* Arabic RTL Support */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.dropdown-menu {
  font-family: 'Tajawal', sans-serif;
}

/* Card Styles */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
}

/* Table Styles */
.table {
  font-family: 'Tajawal', sans-serif;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
  border-top: none;
}

/* Button Styles */
.btn {
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
  border-radius: 0.375rem;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-success {
  background-color: #198754;
  border-color: #198754;
}

.btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}

.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}

/* Form Styles */
.form-control, .form-select {
  font-family: 'Tajawal', sans-serif;
  border-radius: 0.375rem;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Badge Styles */
.badge {
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* Dashboard Cards */
.dashboard-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dashboard-card h3 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.dashboard-card .display-4 {
  font-weight: 800;
}

/* Status Badges */
.status-active {
  background-color: #28a745;
}

.status-pending {
  background-color: #ffc107;
  color: #000;
}

.status-completed {
  background-color: #17a2b8;
}

.status-cancelled {
  background-color: #dc3545;
}

/* Progress Bars */
.progress {
  height: 0.75rem;
  border-radius: 0.375rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .dashboard-card {
    padding: 1.5rem;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}