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

/* ============================================
   JAGRA Design System - Dark Navy Theme
   Font: Geist (Vercel) | Palette: jagra-two.vercel.app
   ============================================ */
:root {
  /* ---- Typography ---- */
  --font-sans: 'Inter', 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-family: var(--font-sans);
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* ---- Brand Colors ---- */
  --color-red-primary:   #ed1c24;  /* Brand Red - aksen utama */
  --color-red-hover:     #c01018;  /* Brand Red hover */
  --color-red-muted:     rgba(237, 28, 36, 0.1);

  /* ---- Navy / Dark Backgrounds ---- */
  --color-bg-deepest:    #020618;  /* slate-950 - body bg */
  --color-bg-deep:       #0f172b;  /* slate-900 - section/content bg */
  --color-bg-navy:       #0F2A4D;  /* navy - sidebar/header bg */
  --color-bg-navy-dark:  #001529;  /* darkest sidebar gradient end */
  --color-bg-dark:       #010F1A;  /* darkest section via */
  --color-bg-card:       #1d293d;  /* slate-800 - card bg */
  --color-bg-card-hover: #243247;  /* card hover */

  /* ---- Blue Accent Scale ---- */
  --color-blue-100: #dbeafe;
  --color-blue-200: #bedbff;
  --color-blue-400: #54a2ff;
  --color-blue-500: #3080ff;
  --color-blue-600: #155dfc;
  --color-blue-900: #1c398e;

  /* ---- Neutral Scale ---- */
  --color-white:     #ffffff;
  --color-gray-300:  #d1d5dc;
  --color-gray-400:  #99a1af;
  --color-gray-500:  #6a7282;
  --color-gray-600:  #4a5565;
  --color-border:    rgba(255, 255, 255, 0.1);
  --color-border-subtle: rgba(255, 255, 255, 0.05);

  /* ---- Semantic Tokens ---- */
  --color-text-primary:   #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted:     rgba(255, 255, 255, 0.45);

  /* ---- Layout ---- */
  color-scheme: dark;
  color: var(--color-text-primary);
  background-color: var(--color-bg-deepest);

  /* ---- Radius & Transitions ---- */
  --radius: 0.625rem;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
a {
  font-weight: 500;
  color: var(--color-blue-400);
  text-decoration: inherit;
}
a:hover {
  color: var(--color-blue-200);
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-y: auto;
  background-color: var(--color-bg-deepest);
  font-family: var(--font-sans);
}
#root {
  min-height: 100vh;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg-deepest);
}
/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gray-600);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-500);
}
/* ---- Responsive ---- */
@media (max-width: 768px) {
  .ant-layout-sider {
    position: fixed !important;
    height: 100vh;
    z-index: 999;
  }
  .ant-layout-content {
    margin-left: 0 !important;
  }
}
/* ---- Ant Design Overrides for Dark Theme ---- */
.ant-card {
  width: 100%;
}
.ant-table-wrapper {
  overflow-x: auto;
}
/* Override Ant Design table hover in dark mode */
.ant-table-tbody > tr:hover > td {
  background: rgba(255, 255, 255, 0.04) !important;
}
/* Badge / Tag subtle glow for red */
.ant-badge-status-error {
  background-color: var(--color-red-primary);
}
h1 { font-size: 3.2em; line-height: 1.1; }
button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: var(--color-bg-card);
  cursor: pointer;
  transition: border-color var(--transition);
}
button:hover {
  border-color: var(--color-red-primary);
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}
