@font-face {
  font-family: "Lahzeh FaNum";
  src: url("../Lahzeh FaNum Webfonts/woff2/Lahzeh-FaNum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lahzeh FaNum";
  src: url("../Lahzeh FaNum Webfonts/woff2/Lahzeh-FaNum-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Lahzeh FaNum";
  src: url("../Lahzeh FaNum Webfonts/woff2/Lahzeh-FaNum-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Lahzeh FaNum";
  src: url("../Lahzeh FaNum Webfonts/woff2/Lahzeh-FaNum-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-soft: #eef0f5;
  --surface-muted: #fafbfc;
  --border: #e2e6ef;
  --text: #12151c;
  --text-secondary: #5c6478;
  --text-muted: #8b93a7;
  --primary: #4f6ef7;
  --primary-soft: #eef1ff;
  --primary-hover: #3d5ae0;
  --success: #22c55e;
  --success-soft: #dcfce7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --shadow-sm: 0 1px 2px rgba(18, 21, 28, 0.05);
  --shadow-md: 0 12px 32px rgba(18, 21, 28, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 180ms ease;
  --page-pad: 28px 32px 120px;
}

[data-theme="dark"] {
  --bg: #0c0e14;
  --surface: #141820;
  --surface-soft: #1a1f2b;
  --surface-muted: #12161f;
  --border: #2a3142;
  --text: #eef1f6;
  --text-secondary: #9aa3b8;
  --text-muted: #6b7289;
  --primary-soft: rgba(79, 110, 247, 0.14);
  --success-soft: rgba(34, 197, 94, 0.12);
  --danger-soft: rgba(239, 68, 68, 0.12);
  --warning-soft: rgba(245, 158, 11, 0.12);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Lahzeh FaNum", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background-color 240ms ease, color 240ms ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
select option {
  font-family: "Lahzeh FaNum", Tahoma, sans-serif;
}

.page {
  width: 100%;
  max-width: none;
  padding: var(--page-pad);
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.topbar-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.icon-btn:hover { background: var(--surface-soft); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; }

.page-title h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.page-title p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { background: var(--surface-soft); }
.btn-outline.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
