html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    margin-bottom: 60px;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
    color: #222;
}

@media (min-width: 768px) {
  html {
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
  .container, .container-fluid {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  .card, .table, .form-control, .btn {
    font-size: 1em !important;
  }
  .btn, .btn-lg, .btn-primary, .btn-success, .btn-danger, .btn-outline-primary, .btn-outline-danger {
    padding: 0.9rem 1.4rem !important;
    font-size: 1.1em !important;
    border-radius: 0.7rem !important;
  }
  .table-responsive {
    overflow-x: auto;
  }
}

.btn, .btn-lg {
    padding: 0.7rem 1.5rem;
    font-size: 1.1em;
    border-radius: 0.6rem;
}

.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;
}

.form-control, .form-select {
    min-height: 48px;
    font-size: 1em;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
}

label, .form-label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 1em;
}

.card {
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-radius: 1.2rem;
}

.card-header, .table thead th {
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.table {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}
.table th, .table td {
    vertical-align: middle !important;
    padding: 12px 6px !important;
    font-size: 1em;
}
.table thead th {
    background: #f8f9fa;
}
.table tbody tr:nth-child(even) {
    background-color: #f4f6fa;
}
.table-responsive {
    overflow-x: auto;
}

.navbar {
    background-color: #343a40;
}

.navbar-brand, .nav-link, .footer {
    color: #ffffff !important;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
    font-size: 1.08em;
}

.navbar-brand:hover, .nav-link:hover {
    color: #adb5bd !important;
}

.footer {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 1em;
}

.hero-section {
    background: url('https://via.placeholder.com/1200x400') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 0;
    text-align: center;
    border-radius: 1.5rem;
}

.info-card {
    margin: 20px 0;
    border-radius: 1.2rem;
}

/* Touch-friendly enhancements */
input[type='radio'], input[type='checkbox'] {
    width: 1.3em;
    height: 1.3em;
}

select, .form-select {
    min-height: 48px;
    font-size: 1em;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
}

/* General spacing for all elements */
*[class^="col-"], .row, .container, .container-fluid {
    margin-bottom: 12px !important;
}

/* Responsive RTL tweaks */
html[dir="rtl"] .form-control, html[dir="rtl"] .form-label, html[dir="rtl"] .btn {
    text-align: right;
}

::-webkit-input-placeholder { color: #bbb; }
::-moz-placeholder { color: #bbb; }
:-ms-input-placeholder { color: #bbb; }
::placeholder { color: #bbb; }