/* ── TUMAN ADMIN — main.css — Design Tokens + Reset + Global ── */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg-base   : #F3F4F6;
  --bg-l1     : #FFFFFF;
  --bg-l2     : #FFFFFF;
  --bg-l3     : #F9FAFB;
  --bg-l4     : #F3F4F6;
  --border-base  : #E5E7EB;
  --border-bright: #D1D5DB;
  --border-focus : #7C3AED;
  --accent-blue  : #7C3AED;
  --accent-purple: #7C3AED;
  --accent-amber : #F59E0B;
  --accent-teal  : #10B981;
  --success : #10B981;
  --warning : #F59E0B;
  --danger  : #EF4444;
  --info    : #3B82F6;
  --text-primary   : #111827;
  --text-secondary : #6B7280;
  --text-muted     : #9CA3AF;
  --text-inverse   : #FFFFFF;
  --color-money   : #F59E0B;
  --color-keycode : #7C3AED;
  --font-display : 'Syne', sans-serif;
  --font-body    : 'DM Sans', sans-serif;
  --font-mono    : 'IBM Plex Mono', monospace;
  --topnav-h     : 64px;
  --bottomnav-h  : 64px;
  --radius       : 12px;
  --radius-sm    : 8px;
  --radius-lg    : 16px;
  --shadow       : 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md    : 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg    : 0 8px 40px rgba(0,0,0,0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Remove Android/iOS blue tap highlight */
*, *::before, *::after {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
a, button, input, select, textarea, label, [role="button"], [tabindex] {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible,
[role="button"]:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

a { color: var(--accent-blue); text-decoration: none; transition: color 150ms; }
a:hover { color: #5B21B6; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font-body); font-size: 14px; color: var(--text-primary); }
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; color: var(--text-primary); line-height: 1.2; }

/* Utility */
.text-primary    { color: var(--text-primary) !important; }
.text-secondary  { color: var(--text-secondary) !important; }
.text-muted      { color: var(--text-muted) !important; }
.text-blue       { color: var(--accent-blue) !important; }
.text-amber      { color: var(--accent-amber) !important; }
.text-teal       { color: var(--accent-teal) !important; }
.text-danger     { color: var(--danger) !important; }
.text-success    { color: var(--success) !important; }
.text-mono       { font-family: var(--font-mono) !important; }
.text-keycode    { font-family: var(--font-mono); color: var(--color-keycode); font-size: 13px; }
.text-money      { color: var(--color-money); font-family: var(--font-mono); font-weight: 500; }
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }
.font-mono    { font-family: var(--font-mono); }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Page Loader */
.page-loader {
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.97);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 99999; opacity: 1;
  transition: opacity 0.3s ease;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }
.page-loader__logo { animation: pulse 1.2s ease-in-out infinite alternate; }
.page-loader__text {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

/* Divider */
.divider { height: 1px; background: var(--border-base); margin: 20px 0; }
.divider--sm { margin: 12px 0; }

/* Section label */
.section-label {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-secondary);
}

/* Section heading (matches screenshot style) */
.section-heading {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800;
  color: var(--text-primary);
}
.section-heading::before,
.section-heading::after {
  content: ''; flex: 1; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-blue));
}

/* Breadcrumb strip */
.breadcrumb-strip {
  height: 40px; background: var(--bg-l1);
  border-bottom: 1px solid var(--border-base);
  display: flex; align-items: center;
  padding: 0 24px; gap: 6px;
  font-size: 12px; color: var(--text-secondary);
}
.breadcrumb-strip a { color: var(--text-secondary); }
.breadcrumb-strip a:hover { color: var(--accent-blue); }
.breadcrumb-strip .sep { color: var(--text-muted); }
.breadcrumb-strip .current { color: var(--text-primary); font-weight: 500; }

/* Announcement banner */
.announcement-banner {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  border-radius: var(--radius);
  padding: 14px 20px; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 12px;
  position: relative; color: #fff;
}
.announcement-banner__icon { color: #fff; font-size: 16px; margin-top: 2px; flex-shrink: 0; opacity: 0.9; }
.announcement-banner__body { flex: 1; }
.announcement-banner__title { font-weight: 700; font-size: 14px; margin-bottom: 2px; color: #fff; }
.announcement-banner__text { font-size: 13px; color: rgba(255,255,255,0.85); }
.announcement-banner__close {
  position: absolute; top: 10px; right: 12px;
  color: rgba(255,255,255,0.7); font-size: 16px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.announcement-banner__close:hover { color: #fff; }
