@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cairo:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --navy: #14213d;
  --royal: #2457d6;
  --purple: #7651d6;
  --emerald: #07966f;
  --gold: #bd9138;
  --danger: #dc4c58;
  --ink: #17233f;
  --muted: #68758c;
  --surface: #ffffff;
  --page: #f4f6fc;
  --line: #e5eaf3;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(24, 39, 75, .07);
}

html { font-size: 15px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter','Noto Sans SC',sans-serif !important;
  color: var(--ink) !important;
  background: var(--page) !important;
  line-height: 1.7;
  letter-spacing: 0;
}
[dir="rtl"], [dir="rtl"] body, html[lang="ar"] body {
  font-family: 'Cairo','Inter',sans-serif !important;
  letter-spacing: 0;
  line-height: 1.85;
}
html[lang="zh"] body { font-family: 'Noto Sans SC','Inter',sans-serif !important; }

h1,h2,h3,h4,h5,h6 {
  color: var(--navy) !important;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.35;
}
p,label,td,th,li { color: inherit; }
small,.muted,.sub,.text-muted { color: var(--muted) !important; }

.card,.panel,.form-card,.paper,.metric,.stat-card,.insight,.item,.tablewrap {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
}
.sidebar {
  background: linear-gradient(180deg,#14213d 0%,#101a31 100%) !important;
  color: #f5f7ff !important;
  border-right: 1px solid rgba(255,255,255,.08);
}
.sidebar h1,.sidebar h2,.sidebar h3,.sidebar a,
.sidebar .brand,.sidebar .navlabel { color: #f5f7ff !important; }
.sidebar a { border-radius: 10px; }
.main { color: var(--ink); }

input,select,textarea {
  font: inherit !important;
  color: var(--ink) !important;
  background: #fff !important;
  border: 1px solid #dce3ef !important;
  border-radius: 10px !important;
  min-height: 42px;
  padding: 10px 13px !important;
  outline: none;
}
input:focus,select:focus,textarea:focus {
  border-color: var(--royal) !important;
  box-shadow: 0 0 0 3px rgba(36,87,214,.12) !important;
}
::placeholder { color: #929db0 !important; opacity: 1; }

button,.btn {
  border-radius: 10px !important;
  font-weight: 700 !important;
  transition: transform .18s ease, box-shadow .18s ease;
}
button:hover,.btn:hover { transform: translateY(-1px); }
button[type="submit"],.btn-primary {
  background: linear-gradient(135deg,#2457d6,#6448c8) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 5px 14px rgba(36,87,214,.2);
}
a { text-decoration: none; }
table { border-collapse: separate; border-spacing: 0; }
th {
  color: #52617a !important;
  background: #f5f7fc !important;
  font-weight: 800 !important;
}
td { border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }

.status,.pill,.tag {
  border-radius: 999px !important;
  font-weight: 700 !important;
}
.status-confirmed,.status-delivered { color: #087c5c !important; }
.status-returned { color: #c33d4d !important; }

.login-card,.register-card {
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 55px rgba(20,33,61,.12) !important;
}
hr { border-color: var(--line); }
:focus-visible { outline: 3px solid rgba(36,87,214,.25); outline-offset: 2px; }

@media (max-width: 768px) {
  html { font-size: 14px; }
  .card,.panel,.form-card { border-radius: 13px !important; }
  input,select,textarea { width: 100%; max-width: 100%; }
}
