/* ═══════════════════════════════════════════════════════════
   Base typography
═══════════════════════════════════════════════════════════ */
html, body {
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', 'Segoe UI', Tahoma, sans-serif;
}

[dir="ltr"] body, [dir="ltr"] * {
  font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   Background — gradient canvas needed for glass to read
═══════════════════════════════════════════════════════════ */
.content-wrapper {
  background: linear-gradient(135deg, #f0f2ff 0%, #e8f0fe 40%, #f3eeff 100%) !important;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════
   Liquid Glass — navbar
═══════════════════════════════════════════════════════════ */
#layout-navbar {
  backdrop-filter: blur(28px) saturate(200%) brightness(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.05);
  background: rgba(255, 255, 255, 0.72) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════════════════════
   Liquid Glass — horizontal menu bar
═══════════════════════════════════════════════════════════ */
.layout-menu-horizontal {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.60) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* ═══════════════════════════════════════════════════════════
   Liquid Glass — cards
═══════════════════════════════════════════════════════════ */
.card {
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 16px !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03) !important;
}

.card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 16px 16px 0 0 !important;
}

.card-footer {
  background: transparent !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 0 0 16px 16px !important;
}

/* ═══════════════════════════════════════════════════════════
   Table — clean, airy header
═══════════════════════════════════════════════════════════ */
.table > thead > tr > th {
  background: transparent !important;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9b97aa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
  padding-top: 12px;
  padding-bottom: 12px;
}

.table-hover > tbody > tr {
  transition: background-color 0.12s ease;
}

.table-hover > tbody > tr:hover > td {
  background-color: rgba(115, 103, 240, 0.04);
}

/* ═══════════════════════════════════════════════════════════
   Status filter — scrollable list panels
═══════════════════════════════════════════════════════════ */
.list-group-item {
  background: transparent !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
  font-size: 15px;
  line-height: 1.5;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.list-group-item:hover:not(.active) {
  background: rgba(115, 103, 240, 0.07) !important;
}

.list-group-item.active {
  border-radius: 8px !important;
  background: linear-gradient(135deg, #7367f0, #9c8cfb) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(115, 103, 240, 0.35);
}

/* Force native scrollbar always visible in the status panels */
.list-group-flush[style*="overflow-y"] {
  scrollbar-width: thin;
  scrollbar-color: rgba(115, 103, 240, 0.3) transparent;
}

.list-group-flush[style*="overflow-y"]::-webkit-scrollbar {
  width: 4px;
}

.list-group-flush[style*="overflow-y"]::-webkit-scrollbar-track {
  background: transparent;
}

.list-group-flush[style*="overflow-y"]::-webkit-scrollbar-thumb {
  background: rgba(115, 103, 240, 0.35);
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   Badges — pill shaped, vivid
═══════════════════════════════════════════════════════════ */
.badge.rounded-pill {
  padding: 0.32em 0.85em;
  font-weight: 600;
  letter-spacing: 0.1px;
  font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════
   Modals — deep glass
═══════════════════════════════════════════════════════════ */
.modal-content {
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 20px !important;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

/* ═══════════════════════════════════════════════════════════
   Dropdowns — glass
═══════════════════════════════════════════════════════════ */
.dropdown-menu {
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(255, 255, 255, 0.90) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 14px !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* ═══════════════════════════════════════════════════════════
   Buttons — rounded pill with depth
═══════════════════════════════════════════════════════════ */
.btn {
  border-radius: 10px;
}

.btn-sm {
  border-radius: 8px;
}

.btn-primary {
  box-shadow: 0 2px 8px rgba(115, 103, 240, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(115, 103, 240, 0.45);
  transform: translateY(-1px);
}

.btn-icon.rounded-pill {
  border-radius: 50% !important;
}

/* ═══════════════════════════════════════════════════════════
   Alerts — glass
═══════════════════════════════════════════════════════════ */
.alert {
  border-radius: 12px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* ═══════════════════════════════════════════════════════════
   Service card list
═══════════════════════════════════════════════════════════ */
.sc-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.sc-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.08), 0 8px 28px rgba(0,0,0,.07);
}

.sc-card--overdue {
  border-right: 3px solid #ff4c51;
  background: rgba(255, 76, 81, 0.04);
}

[dir="ltr"] .sc-card--overdue {
  border-left: 3px solid #ff4c51;
  border-right: none;
}

/* Identity zone */
.sc-top {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.sc-file {
  min-width: 110px;
}

.sc-filenum {
  font-weight: 700;
  font-size: 17px;
  color: #7367f0;
  line-height: 1.3;
}

.sc-badge-xs {
  font-size: 9px !important;
  vertical-align: middle;
}

.sc-meta {
  font-size: 13px;
  color: #a0a0b0;
  line-height: 1.3;
}

.sc-customer {
  font-weight: 600;
  font-size: 17px;
  flex: 1 1 140px;
}

.sc-address {
  font-size: 14px;
  color: #8592a3;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 0 1 160px;
}

.sc-status {
  flex-shrink: 0;
}

.sc-payment select {
  font-size: 13.5px;
  min-width: 108px;
  border-radius: 8px;
}

.sc-by {
  font-size: 13px;
  color: #a0a0b0;
  text-align: end;
  line-height: 1.4;
}

/* Notes zone */
.sc-notes {
  display: flex;
  gap: 0;
  background: rgba(0,0,0,.018);
}

.sc-note-col {
  flex: 1 1 50%;
  padding: 8px 14px;
  border-inline-end: 1px solid rgba(0,0,0,.05);
}

.sc-note-col:last-child {
  border-inline-end: none;
}

.sc-note-icon {
  font-size: 14px;
  margin-top: 2px;
}

.sc-note-text {
  font-size: 15px;
  line-height: 1.55;
}

.sc-note-meta {
  font-size: 12.5px;
  color: #a0a0b0;
  margin-top: 1px;
}

.sc-note-btn {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════
   RTL fixes
═══════════════════════════════════════════════════════════ */
[dir="rtl"] .ti-logout {
  transform: scaleX(-1);
}
