/* ============================================================
   Base / Reset / Variables
   ============================================================ */

html {
  scroll-behavior: smooth;
}

:root {
  /* Colors */
  --color-gold: #C49A3C;
  --color-gold-light: #D4A853;
  --color-gold-dark: #A8832F;
  --color-gold-bg: #FBF6EB;

  --color-background: #ffffff;
  --color-foreground: #1a1a1a;
  --color-card: #ffffff;
  --color-card-foreground: #1a1a1a;
  --color-primary: #1a1a1a;
  --color-primary-foreground: #fafafa;
  --color-secondary: #f5f5f5;
  --color-secondary-foreground: #1a1a1a;
  --color-muted: #f5f5f5;
  --color-muted-foreground: #737373;
  --color-accent: #f5f5f5;
  --color-accent-foreground: #1a1a1a;
  --color-destructive: #dc2626;
  --color-border: #e5e5e5;
  --color-input: #e5e5e5;
  --color-ring: #a3a3a3;

  /* Status colors */
  --color-success-bg: #dcfce7;
  --color-success-text: #15803d;
  --color-warning-bg: #fef9c3;
  --color-warning-text: #a16207;
  --color-danger-bg: #fee2e2;
  --color-danger-text: #dc2626;

  /* Sidebar */
  --color-sidebar: #1a1a1a;
  --color-sidebar-text: #ffffff;
  --color-sidebar-muted: #9ca3af;
  --color-sidebar-hover: rgba(255, 255, 255, 0.05);
  --color-sidebar-active: rgba(255, 255, 255, 0.1);
  --color-sidebar-border: rgba(255, 255, 255, 0.1);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);

  /* Font */
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  /* Sidebar width */
  --sidebar-width: 256px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.body--portal {
  height: 100vh;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-muted);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

img {
  max-width: 100%;
  height: auto;
}

.hidden {
  display: none !important;
}
