:root { --bg: #f4f6f8; --surface: #ffffff; --line: #d8dee6; --text: #20242a; --muted: #667085; --primary-h: 174; --primary-s: 64%; --primary-l: 26%; --primary: hsl(var(--primary-h) var(--primary-s) var(--primary-l)); --primary-hover: hsl(var(--primary-h) var(--primary-s) calc(var(--primary-l) - 8%)); --primary-soft: hsl(var(--primary-h) var(--primary-s) 94%); --primary-text-on: #ffffff; --warn: #b45309; --danger: #b42318; --ink: #111827; } * { box-sizing: border-box; } body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Arial, "Noto Sans Arabic", sans-serif; letter-spacing: 0; } button, input, select, textarea { font: inherit; } button { border: 0; border-radius: 6px; background: var(--primary); color: var(--primary-text-on); min-height: 38px; padding: 0 14px; cursor: pointer; } button:hover { background: var(--primary-hover); } button.secondary { background: #e7edf3; color: var(--ink); } button.danger { background: var(--danger); } button.small { min-height: 30px; padding: 0 10px; } input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); min-height: 38px; padding: 8px 10px; } input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; } textarea { min-height: 74px; resize: vertical; } label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; } h1, h2, h3, p { margin: 0; } h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 16px; } .hidden { display: none !important; } .auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; } .auth-panel { width: min(980px, 100%); } .auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; } .surface { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; } .brand-row { display: flex; align-items: center; gap: 12px; } .brand-row.compact { padding: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); } .brand-mark { width: 42px; height: 42px; border-radius: 8px; background: linear-gradient(135deg, var(--primary) 0 45%, #f59e0b 45% 68%, #2563eb 68% 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); flex: 0 0 auto; } .form-stack { display: grid; gap: 12px; } .app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); } .sidebar { background: #1f2933; color: #fff; } .nav-list { display: grid; gap: 4px; padding: 12px; } .nav-list button { width: 100%; justify-content: start; text-align: right; background: transparent; color: #d7dee8; } .nav-list button.active, .nav-list button:hover { background: var(--primary); color: #fff; } .main { min-width: 0; padding: 18px; } .topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; } .top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .mobile-only { display: none; } .icon-button { min-width: 44px; padding: 0; } .theme-picker { position: relative; } .theme-trigger { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border: 1px solid var(--line); min-width: 44px; padding: 0 12px; } .theme-trigger:hover { background: var(--primary-soft); } .theme-trigger svg { width: 20px; height: 20px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .theme-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; display: grid; gap: 14px; width: min(312px, calc(100vw - 28px)); padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 14px 34px rgba(17, 24, 39, 0.16); opacity: 0; pointer-events: none; transform: translateY(-8px) scale(0.98); transition: opacity 160ms ease, transform 160ms ease; } .theme-picker.open .theme-menu { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); } .theme-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .theme-close { min-width: 34px; min-height: 34px; padding: 0; border-radius: 6px; background: #eef2f6; color: var(--ink); font-size: 20px; } .theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .color-option { position: relative; display: grid; justify-items: center; gap: 6px; min-height: 72px; padding: 6px 4px; border: 1px solid transparent; border-radius: 8px; background: #fff; color: var(--text); } .color-option:hover { background: #f8fafc; } .color-option span { position: relative; width: 44px; height: 44px; border-radius: 999px; background: var(--swatch-color); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.82), 0 0 0 1px var(--line); } .color-option small { font-size: 12px; color: var(--muted); } .color-option.active { border-color: var(--ink); background: var(--primary-soft); } .color-option.active span { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.86), 0 0 0 3px var(--ink); } .color-option.active span::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 800; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); } .custom-color { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; } .custom-color input[type="color"] { width: 100%; min-height: 46px; padding: 2px; } .theme-preview { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 6px; background: var(--preview-color, var(--primary)); color: #fff; font-weight: 700; } .balance-box { display: grid; gap: 2px; min-width: 132px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 12px; } .balance-box span, .muted { color: var(--muted); font-size: 13px; } .balance-box strong { font-size: 20px; color: var(--primary-hover); } .message { border: 1px solid var(--line); border-right: 4px solid var(--primary); background: #fff; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; } .message.error { border-right-color: var(--danger); } .view { display: grid; gap: 14px; } .grid { display: grid; gap: 12px; } .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .metric strong { display: block; margin-top: 8px; font-size: 22px; } .toolbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .inline-form { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)) auto; gap: 10px; align-items: end; } .form-wide { grid-column: 1 / -1; } .payment-instructions { display: grid; gap: 6px; border: 1px solid hsl(var(--primary-h) var(--primary-s) 82%); border-radius: 8px; background: var(--primary-soft); color: var(--text); padding: 12px; } .payment-instructions code { display: block; width: fit-content; max-width: 100%; border-radius: 6px; background: #fff; color: var(--ink); overflow-wrap: anywhere; padding: 6px 8px; } .table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; } table { width: 100%; border-collapse: collapse; min-width: 760px; } th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: right; vertical-align: middle; white-space: nowrap; } th { background: #eef2f6; color: #344054; font-weight: 700; } tr:last-child td { border-bottom: 0; } .status { display: inline-block; min-width: 78px; border-radius: 999px; padding: 4px 8px; background: #eef2f6; color: #344054; text-align: center; font-size: 12px; } .status.active, .status.approved, .status.completed, .status.processing { background: #dcfce7; color: #166534; } .status.pending, .status.partial { background: #fef3c7; color: #92400e; } .status.banned, .status.failed, .status.rejected, .status.canceled { background: #fee2e2; color: #991b1b; } .empty { color: var(--muted); padding: 18px; } @media (max-width: 1023px) { .app-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } .sidebar { align-self: start; border-bottom: 1px solid var(--line); } .brand-row.compact { display: none; } .nav-list { display: flex; overflow-x: auto; padding: 10px 18px; } .nav-list button { width: auto; white-space: nowrap; } .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inline-form { grid-template-columns: repeat(2, minmax(180px, 1fr)); } } @media (max-width: 640px) { .auth-grid, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; } button, input, select, textarea { min-height: 44px; } button.small { min-height: 38px; } .mobile-only { display: inline-grid; place-items: center; } .app-shell { display: block; } .sidebar { position: fixed; inset: 0 0 auto 0; z-index: 30; transform: translateY(-105%); transition: transform 160ms ease; box-shadow: 0 20px 36px rgba(17, 24, 39, 0.25); } .app-shell.nav-open .sidebar { transform: translateY(0); } .nav-list { display: grid; max-height: 72vh; overflow: auto; padding: 14px; } .nav-list button { width: 100%; min-height: 46px; } .nav-backdrop { position: fixed; inset: 0; z-index: 25; border: 0; border-radius: 0; background: rgba(17, 24, 39, 0.42); cursor: pointer; } .topbar, .toolbar { align-items: flex-start; flex-direction: row; flex-wrap: wrap; } .top-actions { width: 100%; } .theme-trigger { padding: 0; justify-content: center; } .theme-trigger span { display: none; } .theme-menu { left: auto; right: 0; } .balance-box { min-width: 0; flex: 1 1 130px; } .inline-form { grid-template-columns: 1fr; } .main { padding: 14px; } .table-wrap { overflow: visible; border: 0; background: transparent; } table, thead, tbody, tr, td { display: block; width: 100%; min-width: 0; } thead { display: none; } tr { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 10px; } tr + tr { margin-top: 10px; } td { display: grid; grid-template-columns: minmax(96px, 38%) minmax(0, 1fr); gap: 8px; border-bottom: 1px solid #eef2f6; padding: 9px 0; white-space: normal; overflow-wrap: anywhere; } td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; } tr:last-child td { border-bottom: 1px solid #eef2f6; } td:last-child { border-bottom: 0; } }