:root {
  --ui-primary: #9a2f57;
  --ui-primary-dark: #9a3158;
  --ui-primary-soft: #eef3ff;
  --ui-secondary: #0f172a;
  --ui-accent: #5bbcff;
  --ui-danger: #e34d6f;
  --ui-success: #10b981;
  --ui-warning: #f59e0b;
  --ui-text: #42526b;
  --ui-text-strong: #d5d5d5;
  --ui-muted: #7f8ca8;
  --ui-border: #e7ecf5;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f7f9fd;
  --ui-shadow: 0 18px 45px rgba(30, 60, 114, 0.08);
  --ui-radius: 22px;

  --luxury-grad-1: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #9a3158 100%);
  --luxury-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
}
.card-header {
  color: #d5d5d5;
}
html,
body {
  overflow-x: hidden;
}

body {
  font-family: 'Cairo', 'Public Sans', sans-serif;
  color: var(--ui-text);
  background:
    radial-gradient(circle at top right, rgba(91, 188, 255, 0.09), transparent 18%),
    linear-gradient(180deg, #f7f9fd 0%, #f2f5fb 100%);
}

/* =========================
   GLOBAL HELPERS
========================= */
#toast-container > .toast-success { background-color: #15964f; }
#toast-container > .toast-error { background-color: #f00; }
#map { height: 500px; width: 100%; }

.activeDriver,
.disActive {
  padding: 4px 3px;
  color: #eee;
}

.activeDriver { background: #ed2629; }
.disActive { background: #f00; }

.successIcon,
.errooIcon {
  color: #f4eeee !important;
  border-radius: 28px;
  padding: 3px 3px 3px 6px;
}

.successIcon { background-color: #ed2629; }
.errooIcon { background-color: #f21212; }

.login_form {
  direction: rtl;
  text-align: right;
}

.app-brand-text.demo { font-size: 1.25rem; }


.logo {
  height: 58px;
  width: 100%;
  margin-top: 23px;
}
/* =========================
   NAVBAR / SIDEBAR / LAYOUT
========================= */
.layout-navbar,
.layout-page .navbar-detached {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(231, 236, 245, 0.9);
  box-shadow: 0 10px 35px rgba(31, 63, 159, 0.06);
  border-radius: 20px;
}

#layout-menu {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fd 100%) !important;
  border-inline-end: 1px solid rgba(231, 236, 245, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

#layout-menu .app-brand {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--ui-border);
}

#layout-menu .menu-header {
  margin-top: 1rem;
}

#layout-menu .menu-header-text {
  color: var(--ui-muted);
  font-weight: 800;
  letter-spacing: 0.2px;
}

#layout-menu .menu-link {
  border-radius: 16px;
  margin: 0.2rem 0.7rem;
  transition: all 0.22s ease;
}

#layout-menu .menu-link:hover {
  background: #a9677f;
  color: #d5d5d5;
  transform: translateX(2px);
}

.menu-item.active > .menu-link:not(.menu-toggle) {
  background: linear-gradient(135deg, #9a3159 0%, #9c3159 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 28px rgb(154, 49, 88);
}

.menu-item.active > .menu-link .menu-icon,
.menu-item.active > .menu-link div {
  color: inherit !important;
}

.layout-page .container-xxl.container-p-y {
  padding-top: 1.35rem;
}

/* =========================
   CARDS
========================= */
.layout-page .card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(231, 236, 245, 0.98);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.layout-page .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.12);
}

.layout-page .card-header {
  border: 0;
  padding: 1.1rem 1.35rem;
  margin-bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 63, 159, 0.88) 0%,
    rgba(53, 89, 212, 0.82) 55%,
    rgba(91, 188, 255, 0.74) 100%
  );
}

.layout-page .card-header h1,
.layout-page .card-header h2,
.layout-page .card-header h3,
.layout-page .card-header h4,
.layout-page .card-header h5,
.layout-page .card-header h6,
.layout-page .card-header .fw-bold,
.layout-page .card-header .page_title {
  color: #fff !important;
  margin-bottom: 0;
}

.card-tile {
  color: #ccc;
  font-weight: bold;
}

.page_title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  padding: 1rem 1.2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--ui-primary-dark), var(--ui-primary));
  border-radius: 18px 18px 0 0;
}

.layout-page .card-body {
  padding: 1.15rem 1.35rem;
}

/* =========================
   TABLES
========================= */
.layout-page .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
}

.luxury-table-shell {
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  box-shadow: var(--luxury-shadow-lg);
}

.layout-page .table {
  margin-bottom: 0;
  min-width: 760px;
  border-color: #edf1f7;
}

.layout-page .table > :not(caption) > * > * {
  padding: 1rem 0.85rem;
  vertical-align: middle;
}

.layout-page .table thead th,
.layout-page .table.table-bordered thead th,
.layout-page .table-dark th {
 background: linear-gradient(135deg, #982c55 0%, #8f556b 100%) !important;
  color: #d5d5d5 !important;
  border-color: rgb(213, 213, 213) !important;
  font-weight: 800;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
  backdrop-filter: blur(12px);
}
.card-title:not(h1):not(.h1):not(h2):not(.h2):not(h3):not(.h3):not(h4):not(.h4):not(h5):not(.h5):not(h6):not(.h6) {
  color: #d5d5d5;
}

.layout-page .table tbody tr {
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.layout-page .table tbody tr:hover {
  background: #fbfcff;
  transform: translateY(-2px) scale(0.998);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.layout-page .table tbody td {
  color: var(--ui-text);
  border-color: #edf1f7;
}

.layout-page .table tbody td:first-child,
.layout-page .table tbody th:first-child {
  border-inline-start: 4px solid transparent;
}

.layout-page .table tbody tr:hover td:first-child,
.layout-page .table tbody tr:hover th:first-child {
  border-inline-start-color: #9a3158;
}

.layout-page .table img,
.layout-page table img {
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

/* =========================
   FORMS
========================= */
.layout-page .form-control,
.layout-page .form-select,
.layout-page .select2-selection,
.layout-page .tagify,
.layout-page .bootstrap-select > .dropdown-toggle,
.login_form .form-control,
.login_form .input-group-text {
  min-height: 48px;
  border-radius: 16px !important;
  border: 1px solid #dce4f1 !important;
  background: #fff;
  box-shadow: none;
  transition: all 0.18s ease;
}

.layout-page textarea.form-control {
  min-height: 120px;
}

.layout-page .form-control:focus,
.layout-page .form-select:focus,
.layout-page .bootstrap-select > .dropdown-toggle:focus,
.layout-page .select2-container--default.select2-container--focus .select2-selection--single,
.layout-page .select2-container--default.select2-container--focus .select2-selection--multiple,
.login_form .form-control:focus {
  border-color: rgba(53, 89, 212, 0.45) !important;
  box-shadow: 0 0 0 0.22rem rgba(53, 89, 212, 0.12) !important;
}

.layout-page .form-label,
.layout-page label,
.login_form .form-label {
  color: var(--ui-text-strong);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

/* =========================
   BUTTONS
========================= */
.layout-page .btn,
.login_form .btn {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding-inline: 1rem;
  font-weight: 700;
  letter-spacing: 0.1px;
  transition: all 0.2s ease;
}

.layout-page .btn:hover,
.login_form .btn:hover {
  transform: translateY(-1px);
}

.layout-page .btn::after,
.login_form .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.22) 40%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.8s ease;
}

.layout-page .btn:hover::after,
.login_form .btn:hover::after {
  transform: translateX(120%);
}

.layout-page .btn-primary,
.layout-page .btn-primary:focus-visible,
.login_form .btn-primary,
.login_form .btn-primary:focus-visible {
  background: linear-gradient(135deg, #d5d5d5 0%, #d5d5d5 100%) !important;
  border-color: transparent !important;
  color: #9a2f57 !important;
  box-shadow: 0 12px 24px rgb(154, 47, 87);
}

.layout-page .btn-outline-primary {
  border-color: rgb(213, 213, 213);
  color: var(--ui-primary);
  background: rgba(53, 89, 212, 0.06);
}

.layout-page .btn-outline-primary:hover,
.layout-page .btn-outline-primary:focus-visible {
  background: var(--ui-primary);
  color: #fff;
  border-color: var(--ui-primary);
}

.layout-page .btn-outline-danger {
  border-color: rgba(227, 77, 111, 0.24);
  color: var(--ui-danger);
  background: rgba(227, 77, 111, 0.06);
}

.layout-page .btn-outline-danger:hover,
.layout-page .btn-danger,
.layout-page .btn-danger:hover {
  background: linear-gradient(135deg, #d8385d, #f06f8d);
  border-color: transparent;
  color: #fff;
}

.layout-page .btn-outline-success,
.layout-page .btn-success,
.layout-page .btn-success:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.22);
  color: var(--ui-success);
}

.layout-page .btn-label-secondary,
.layout-page .btn-secondary,
.layout-page .btn-light {
  background: #f4f7fc;
  border-color: #e4ebf5;
  color: var(--ui-text-strong);
}

.layout-page .table .btn-sm,
.layout-page .card-header .btn,
.layout-page .pagination .page-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.luxury-btn-icon {
  margin-inline-end: 0.45rem;
  font-size: 1rem;
}

/* =========================
   MODALS
========================= */
.layout-page .modal-content,
.modal-content {
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.layout-page .modal-header {
  border-bottom: 1px solid #eef2f7;
  background: #fbfcff;
}

.layout-page .modal-footer {
  border-top: 1px solid #eef2f7;
  background: #fbfcff;
}

.modal.show .modal-dialog {
  animation: luxuryReveal 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-backdrop.show {
  opacity: 0.45;
  backdrop-filter: blur(2px);
}

body > .modal {
  z-index: 1060;
}

body > .modal-backdrop {
  z-index: 1055;
}

/* =========================
   PAGINATION
========================= */
.layout-page .pagination {
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 0 0.4rem;
}

.layout-page .pagination .page-link {
  min-width: 42px;
  min-height: 42px;
  justify-content: center;
  border-radius: 12px;
  border-color: #e3eaf5;
  color: var(--ui-text-strong);
}

.layout-page .pagination .active .page-link,
.layout-page .pagination .page-link:hover {
  background: linear-gradient(135deg, var(--ui-primary-dark), var(--ui-primary));
  border-color: transparent;
  color: #fff;
}

/* =========================
   LOGIN PAGE FIXED
========================= */
.login-premium-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(96,165,250,0.18), transparent 22%),
    radial-gradient(circle at bottom right, rgba(14,165,233,0.14), transparent 20%),
    linear-gradient(135deg, #f7faff 0%, #edf4ff 100%);
}

.login-premium-body .container-xxl {
  max-width: 1380px;
}

.authentication-wrapper.authentication-basic {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.authentication-wrapper.authentication-basic .authentication-inner {
  width: 100% !important;
  max-width: 1220px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.premium-auth-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  align-items: stretch;
  gap: 2rem;
  width: 100%;
}

.login-showcase,
.login-panel {
  position: relative;
  overflow: hidden;
}

.login-showcase {
  border-radius: 32px;
  background: var(--luxury-grad-1);
  min-height: 640px;
  padding: 2.25rem;
  color: #fff;
  box-shadow: 0 30px 80px rgba(30, 64, 175, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-showcase::before,
.login-showcase::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  pointer-events: none;
}

.login-showcase::before {
  width: 260px;
  height: 260px;
  top: -60px;
  left: -40px;
}

.login-showcase::after {
  width: 140px;
  height: 140px;
  bottom: 30px;
  right: 40px;
  animation: luxuryPulse 4s ease-in-out infinite;
}

.login-showcase__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
  margin-bottom: 1.4rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(10px);
}

.login-showcase h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1rem;
  max-width: 620px;
  word-break: normal;
  overflow-wrap: break-word;
}

.login-showcase p {
  color: rgba(255,255,255,0.84);
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.75rem;
}

.login-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.login-showcase__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  min-height: 72px;
}

.login-showcase__item i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.login-showcase__item span {
  color: #fff;
  font-weight: 700;
  line-height: 1.6;
}

.login_form.login-panel {
  margin: 0 !important;
  width: 100%;
  max-width: 100%;
  border-radius: 30px;
  border: 1px solid rgba(226,232,240,0.85);
  box-shadow: 0 24px 70px rgba(15,23,42,0.10);
  background: rgba(255, 255, 255, 0.98);
  align-self: center;
}

.login_form .card-body {
  padding: 2.2rem;
}

.login-panel__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.login-panel__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 16px;
  background: #f8faff;
  padding: 0.5rem;
  border: 1px solid #ebf0f8;
  flex-shrink: 0;
}

.login_form h4 {
  color: #0f172a;
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.login_form .text-muted {
  color: #7b8798 !important;
}

.login_form .input-group {
  direction: rtl;
}

.login_form .input-group-text {
  color: #68809f;
  background: #fff;
}

.login_form .form-control {
  padding-inline: 0.95rem;
}

.login_form .btn-primary,
.login-submit-btn {
  min-height: 52px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(37,99,235,0.22);
}

.login_form .form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login_form .form-check-input {
  float: none;
  margin: 0;
}

.login_form .form-check-label {
  margin: 0;
  font-weight: 600;
  color: var(--ui-text);
}

/* =========================
   DASHBOARD SPECIALS
========================= */
.dashboard-hero {
  background: var(--luxury-grad-1) !important;
  border: 0 !important;
  box-shadow: 0 30px 70px rgba(37, 99, 235, 0.25) !important;
}

.dashboard-hero .card-body {
  background: radial-gradient(circle at top right, rgb(213, 213, 213), #9a2f58 18%), radial-gradient(circle at bottom left, rgba(125,211,252,0.22), #9a2f57 24%), #9a2f58;
}

.dashboard-hero__content {
  padding: 2rem 2rem 2rem 2.2rem;
  color: #fff;
}

.dashboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(12px);
  font-weight: 700;
  margin-bottom: 1rem;
}

.dashboard-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.dashboard-hero p {
  color: rgba(255,255,255,0.84);
  max-width: 560px;
  font-size: 1.04rem;
  margin-bottom: 1.2rem;
}

.dashboard-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.dashboard-hero__actions .btn-outline-primary {
  color: #fff;
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}

.dashboard-hero__actions .btn-outline-primary:hover {
  color: #fff;
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
}

.dashboard-hero__visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dashboard-hero__visual img {
  position: relative;
  z-index: 2;
  max-width: min(90%, 340px);
  animation: luxuryFloat 4.5s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(15,23,42,0.28));
}

.dashboard-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
}

.dashboard-orb--one {
  width: 210px;
  height: 210px;
  background: rgba(125,211,252,0.28);
  top: 12%;
  right: 12%;
  animation: luxuryFloat 6s ease-in-out infinite;
}

.dashboard-orb--two {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.18);
  bottom: 14%;
  left: 8%;
  animation: luxuryPulse 3.4s ease-in-out infinite;
}

.dashboard-metric {
  border: 1px solid rgba(226,232,240,0.9) !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.dashboard-metric .card-body {
  position: relative;
  padding: 1.3rem;
}

.dashboard-metric__icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgb(154, 49, 88), rgb(154, 49, 89));
  color: #d5d5d5;
  font-size: 1.45rem;
  margin-bottom: 0.9rem;
}
.text-primary {
  color: rgb(213, 213, 213) !important;
}
.dashboard-metric__label {
  display: block;
  font-size: 0.83rem;
  color: var(--ui-muted);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.dashboard-metric h4 {
  margin-bottom: 0.45rem;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
}

.dashboard-metric p {
  margin: 0;
  color: #64748b;
}

.dashboard-metric--accent {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
}

/* =========================
   MEDIA / FILE INPUTS
========================= */
.img_div { margin: 10px 0; }

.img_div img {
  width: 100%;
  height: 110px;
}

.img-box {
  width: 170px;
  height: 120px;
  border: 1px dashed #ddd;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fafafa;
}

.img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.drop-area {
  border: 2px dashed #cfd4dc;
  border-radius: 12px;
  padding: 18px;
  background: #fafafa;
  transition: 0.15s ease;
  cursor: pointer;
  position: relative;
}

.drop-area.dragover {
  background: #f2f7ff;
  border-color: #5c9dff;
}

.drop-hint { text-align: center; }

.previews {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.preview-item {
  width: 140px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  position: relative;
}

.preview-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.preview-meta {
  font-size: 11px;
  color: #6b7280;
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
}

.remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.remove-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* =========================
   MISC
========================= */
.text-truncate {
  display: inline-block;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.btn_back {
  direction: ltr;
  margin-top: 25px;
}

#customerTable tbody {
  box-sizing: border-box;
}

#customerTable tr th {
  padding-top: 12px;
  padding-bottom: 12px;
  background: linear-gradient(135deg, var(--ui-primary-dark), var(--ui-primary));
  color: white;
  width: 50%;
  border: 1px solid #ddd;
}

#customerTable tr td {
  border: 1px solid #ddd;
  padding: 8px;
}

.btn-action,
.btn-action:hover,
.btn-action:active,
.btn-action:focus-visible {
  background: var(--ui-primary);
  color: #eee;
}

.subTitle {
  display: block;
  font-size: 33px;
  color: #eee;
  font-weight: bold;
}

.totalProfit {
  font-size: 16px;
  font-weight: bold;
}

.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  display: block;
}

.error-icon {
  color: red;
  display: none;
  position: absolute;
  top: 38px;
  right: 10px;
  z-index: 2;
}

.shake {
  animation: shake 0.3s;
  border-color: red !important;
}

.select2-container.is-loading .select2-selection--single {
  position: relative;
  pointer-events: none;
  opacity: 0.9;
}

.select2-container.is-loading .select2-selection--single .select2-selection__rendered,
.select2-container.is-loading .select2-selection__rendered {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s2-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  animation: s2spin 0.8s linear infinite;
  flex: 0 0 auto;
}

/* =========================
   MOTION
========================= */
body.luxury-ui-ready .luxury-reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  animation: luxuryReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--luxury-delay, 0ms);
}

.layout-page .table tbody tr.luxury-reveal,
.layout-page .table tbody td.luxury-reveal,
.layout-page .table tbody th.luxury-reveal {
  transform: none !important;
}

@keyframes luxuryReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes luxuryFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes luxuryPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.18); }
  50% { box-shadow: 0 0 0 14px rgba(59,130,246,0); }
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

@keyframes s2spin {
  to { transform: rotate(360deg); }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1199.98px) {
  .layout-page .container-xxl.container-p-y {
    padding-inline: 0.85rem;
  }

  .layout-page .card-header,
  .layout-page .card-body {
    padding-inline: 1rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner {
    max-width: 100% !important;
  }

  .premium-auth-shell {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .login-showcase {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .layout-page .card {
    border-radius: 18px;
  }

  .layout-page .table {
    min-width: 680px;
  }

  .layout-page .btn {
    min-height: 40px;
  }

  .layout-page .card-header {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .layout-page .card-header .btn {
    width: 100%;
    justify-content: center;
  }

  .layout-navbar,
  .layout-page .navbar-detached {
    border-radius: 16px;
  }

  .login-premium-body .container-xxl {
    padding-inline: 0.75rem;
  }

  .authentication-wrapper.authentication-basic.container-p-y {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .login-showcase {
    padding: 1.4rem;
    border-radius: 24px;
  }

  .login-showcase h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    max-width: 100%;
  }

  .login-showcase__grid {
    grid-template-columns: 1fr;
  }

  .login_form .card-body,
  .dashboard-hero__content {
    padding: 1.35rem;
  }

  .dashboard-hero__visual {
    min-height: 240px;
  }

  .login-panel__brand {
    align-items: flex-start;
  }
}
/* =========================
   2026 MODERN SAFE ENHANCEMENTS
   Additive overrides only
========================= */
:root {
  --luxury-blur: 14px;
  --luxury-ring: 0 0 0 0.24rem rgba(37, 99, 235, 0.12);
}

body.luxury-ui-ready {
  background-attachment: fixed;
}

.layout-page .container-xxl,
.authentication-wrapper .authentication-inner {
  width: min(100%, 1480px);
}

.layout-page .card,
.layout-page .table-responsive,
.layout-page .modal-content,
.login-panel,
.login-showcase {
  backdrop-filter: blur(var(--luxury-blur));
}

.layout-page .card-header,
.page_title,
.login-panel .btn-primary,
.login-showcase .btn-primary {
  position: relative;
  isolation: isolate;
}

.layout-page .card-header::before,
.page_title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgb(154, 47, 87), #9a2f57 45%, rgb(152, 44, 85));
  pointer-events: none;
  z-index: -1;
}

.layout-page .form-control,
.layout-page .form-select,
.layout-page .select2-selection,
.layout-page .bootstrap-select > .dropdown-toggle,
.layout-page .tagify,
.login_form .form-control,
.login_form .input-group-text {
  background: rgba(255,255,255,0.94);
}

.layout-page .form-control::placeholder,
.login_form .form-control::placeholder {
  color: #94a3b8;
}

.layout-page .form-control:focus,
.layout-page .form-select:focus,
.layout-page .bootstrap-select > .dropdown-toggle:focus,
.login_form .form-control:focus {
  box-shadow: var(--luxury-ring) !important;
}

.layout-page .btn,
.login_form .btn,
.layout-page .page-link,
.layout-page .badge {
  will-change: transform;
}

.layout-page .btn-sm,
.layout-page .page-link,
.layout-page .badge {
  border-radius: 999px;
}

.layout-page .dropdown-menu,
.swal2-popup,
.select2-dropdown,
.flatpickr-calendar {
  border-radius: 20px !important;
  border: 1px solid rgba(226,232,240,0.9) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12) !important;
}

.layout-page .table-responsive::-webkit-scrollbar {
  height: 10px;
}

.layout-page .table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(37,99,235,.45), rgba(14,165,233,.45));
  border-radius: 999px;
}

.layout-page .nav-tabs .nav-link,
.layout-page .nav-pills .nav-link {
  border-radius: 14px;
}

.layout-page .nav-pills .nav-link.active,
.layout-page .nav-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--ui-primary-dark), var(--ui-primary));
  color: #fff;
  border-color: transparent;
}

.layout-page .breadcrumb {
  background: rgba(255,255,255,0.58);
  padding: .65rem .9rem;
  border-radius: 14px;
  display: inline-flex;
}

.luxury-floating-action {
  position: fixed;
  inset-inline-end: 18px;
  inset-block-end: 18px;
  z-index: 1040;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #9a3159, #d5d5d5);
  box-shadow: 0 16px 34px rgb(154, 49, 88);
}

@media (max-width: 1199.98px) {
  .premium-auth-shell {
    grid-template-columns: 1fr;
  }

  .login-showcase {
    min-height: 320px;
  }
}

@media (max-width: 991.98px) {
  .layout-navbar,
  .layout-page .navbar-detached {
    border-radius: 16px;
  }

  .layout-page .container-xxl.container-p-y {
    padding-top: 1rem;
  }

  .layout-page .card-header,
  .layout-page .card-body {
    padding-inline: 1rem;
  }

  .layout-page .table {
    min-width: 640px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 14px;
  }

  .logo {
    height: 38px;
    margin-top: 12px;
  }

  .page_title {
    font-size: 1rem;
    padding: .85rem 1rem;
  }

  .layout-page .card,
  .layout-page .modal-content,
  .login-panel,
  .login-showcase {
    border-radius: 18px;
  }

  .layout-page .btn,
  .login_form .btn,
  .layout-page .form-control,
  .layout-page .form-select,
  .login_form .form-control {
    min-height: 44px;
  }

  .layout-page .table {
    min-width: 560px;
  }
}
/* ===========  modern css  ==================*/
/* MODERN UI 2026 */

/* general */
body{
    background:#f6f8fc;
    font-family: 'Tajawal', sans-serif;
}


/* header search */
.header-search{
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
}


/* cards */
.card{
    border:none;
    border-radius:18px;
    box-shadow:0 10px 25px rgba(0,0,0,0.05);
    transition: all .3s ease;
}

.card:hover{
    transform:translateY(-5px);
    box-shadow:0 20px 40px rgba(0,0,0,0.1);
}


/* dashboard icons */
.card .icon{
    width:60px;
    height:60px;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
}


/* sidebar */
.sidebar{
    background:#ffffff;
    box-shadow:-5px 0 20px rgba(0,0,0,0.05);
}

.sidebar a{
    border-radius:12px;
    transition: all .3s;
}

.sidebar a:hover{
    background:#f3f6ff;
    transform:translateX(-5px);
}

.sidebar .active{
    background:linear-gradient(90deg,#4f6cff,#5a7cff);
    color:#fff !important;
}


/* buttons */
.btn-primary{
    border:none;
    background:linear-gradient(135deg,#4f6cff,#5a7cff);
    border-radius:12px;
    padding:10px 22px;
}

.btn-primary:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(0,0,0,0.15);
}


/* tables */
.table{
    border-radius:15px;
    overflow:hidden;
}


/* charts section */
.chart-card{
    border-radius:20px;
    background:#fff;
    box-shadow:0 15px 35px rgba(0,0,0,0.05);
}


/* scroll button */
.scroll-top{
    background:linear-gradient(135deg,#4f6cff,#5a7cff);
    border-radius:50%;
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}
.menu .app-brand.demo {
  height: 80px;
}

/* responsive */

@media (max-width:768px){

.sidebar{
    width:70px;
}

.card{
    margin-bottom:15px;
}

}
