
/* Phase 4 named layer ownership map.
   Keep global stacking in one source; component-local overlays remain below Host chrome. */
:root {
    --mz-layer-content: 0;
    --mz-layer-component-overlay: 10;
    --mz-layer-sticky: 20;
    --mz-layer-header: 40;
    --mz-layer-popover: 50;
    --mz-layer-backdrop: 80;
    --mz-layer-modal: 90;
    --mz-layer-toast: 100;
}

.mz-layer-sticky { z-index: var(--mz-layer-sticky); }
.mz-layer-header { z-index: var(--mz-layer-header); }
.mz-layer-popover { z-index: var(--mz-layer-popover); }
.mz-layer-modal { z-index: var(--mz-layer-modal); }
.mz-layer-toast { z-index: var(--mz-layer-toast); }
/* CSS Reset - Remove default margins and padding */
html, body {
  margin: 0;
  padding: 0;
}

/* Global Font Enforcement - Noto Sans Arabic */
html[dir="rtl"]  {
  font-family: 'Noto Sans Arabic', sans-serif !important;
}

/* RTL Base Styles */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', sans-serif !important;
  direction: rtl;
  text-align: right;
}

/* RTL Form Styles */
html[dir="rtl"] input[type="text"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="password"],
html[dir="rtl"] input[type="search"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] input[type="text"]::placeholder,
html[dir="rtl"] input[type="email"]::placeholder,
html[dir="rtl"] input[type="password"]::placeholder,
html[dir="rtl"] input[type="search"]::placeholder,
html[dir="rtl"] input[type="number"]::placeholder,
html[dir="rtl"] input[type="tel"]::placeholder,
html[dir="rtl"] input[type="url"]::placeholder,
html[dir="rtl"] textarea::placeholder {
  text-align: right;
  direction: rtl;
}

/* RTL Form Group Styles */
html[dir="rtl"] .form-group {
  text-align: right;
}

html[dir="rtl"] .form-label {
  text-align: right;
  display: block;
  margin-bottom: 0.5rem;
}

html[dir="rtl"] .form-control {
  text-align: right;
  direction: rtl;
}

/* Unified input/textarea styling when using .form-control */
.form-control {
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 0.375rem;   /* rounded */
  padding: 0.5rem 0.75rem;   /* px-3 py-2 */
  width: 100%;
  box-sizing: border-box;
}
textarea.form-control {
  min-height: 6rem; /* ~rows=4 */
}

/* RTL Checkbox and Radio Styles */
html[dir="rtl"] .form-check {
  text-align: right;
  padding-right: 1.25rem;
  padding-left: 0;
}

html[dir="rtl"] .form-check-input {
  margin-right: -1.25rem;
  margin-left: 0;
}

html[dir="rtl"] .form-check-label {
  padding-right: 0.5rem;
  padding-left: 0;
}

/* RTL Input Group Styles */
html[dir="rtl"] .input-group {
  direction: rtl;
}

html[dir="rtl"] .input-group-text {
  border-left: 0;
  border-right: 1px solid #ced4da;
}

html[dir="rtl"] .input-group .form-control:not(:last-child) {
  border-right: 0;
  border-left: 1px solid #ced4da;
}

html[dir="rtl"] .input-group .form-control:not(:first-child) {
  border-left: 0;
  border-right: 1px solid #ced4da;
}

/* RTL Button Styles */
html[dir="rtl"] .btn,
html[dir="rtl"] button {
  text-align: center;
}

/* RTL Navigation Styles */
html[dir="rtl"] .navbar-nav {
  direction: rtl;
}

html[dir="rtl"] .nav-item {
  margin-left: 0;
  margin-right: 1rem;
}

html[dir="rtl"] .nav-item:last-child {
  margin-right: 0;
}

/* RTL Card Styles */
html[dir="rtl"] .card {
  text-align: right;
}

html[dir="rtl"] .card-header {
  text-align: right;
}

html[dir="rtl"] .card-body {
  text-align: right;
}

/* RTL List Styles */
html[dir="rtl"] ul,
html[dir="rtl"] ol {
  padding-right: 0;
  padding-left: 1.5rem;
}

html[dir="rtl"] li {
  text-align: right;
}

/* RTL Table Styles */
html[dir="rtl"] table {
  direction: rtl;
}

html[dir="rtl"] th,
html[dir="rtl"] td {
  text-align: right;
}

/* RTL Modal Styles */
html[dir="rtl"] .modal-header {
  text-align: right;
}

html[dir="rtl"] .modal-body {
  text-align: right;
}

html[dir="rtl"] .modal-footer {
  text-align: left;
}

/* RTL Alert Styles */
html[dir="rtl"] .alert {
  text-align: right;
}

/* RTL Dropdown Styles */
html[dir="rtl"] .dropdown-menu {
  right: 0;
  left: auto;
  text-align: right;
}

/* RTL Breadcrumb Styles */
html[dir="rtl"] .breadcrumb {
  direction: rtl;
}

html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
  content: "\\";
  transform: scaleX(-1);
}

/* RTL Pagination Styles */
html[dir="rtl"] .pagination {
  direction: rtl;
}

html[dir="rtl"] .page-item:first-child .page-link {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

html[dir="rtl"] .page-item:last-child .page-link {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

/* Basic buttons */
.btn1 {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border-radius: 0.375rem;
  text-align: center;
  background-color: #1199F4; /* brand */
  color: #fff;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn1:hover { background-color: #70C7FE; /* brandAlt */ }

.btn2 {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border-radius: 0.375rem;
  text-align: center;
  background-color: #fff;
  color: #1199F4; /* brand */
  border: 1px solid #1199F4; /* brand */
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn2:hover { background-color: #70C7FE; color: #fff; } /* brandAlt */

/* Solid green button */
.btn-success {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border-radius: 0.375rem;
  text-align: center;
  background-color: #51bf8b;
  color: #fff;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-success:hover { background-color: #157347; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-100px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fadeInUp { animation: fadeInUp 1s ease-out forwards; }
.animate-slideInDown { animation: slideInDown 1s ease-out forwards; }
.animate-fadeIn { animation: fadeIn 1s ease-out forwards; }
.opacity-0 { opacity: 0; }

.feature-card {
  background-color: #ffffff;
  border-radius: 0.5rem; /* rounded-lg */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1),
              0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 1.5rem; /* p-6 */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.feature-card:active { transform: scale(0.95); }


/* Real Host compatibility utility. Kept outside the Django base template. */
.container2 {
  margin-inline: 5rem;
}

@media (max-width: 768px) {
  .container2 {
    margin-inline: 1rem;
  }
}
