@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --font-size: 16px;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Lato, sans-serif';
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  --background: #F9F7F2;
  --foreground: #5D4037;

  --primary: #5D4037;
  --primary-foreground: #F9F7F2;

  --secondary: #F2EBE3;
  --secondary-foreground: #5D4037;

  --accent: #C19A6B;
  --accent-foreground: #FFFFFF;

  --muted: #EAE5DD;
  --muted-foreground: #8D6E63;

  --card: #FFFFFF;
  --card-foreground: #5D4037;

  --border: #EAE5DD;
  --input: #EAE5DD;
  --ring: #C19A6B;
  --radius: 0.5rem;
  --destructive: #7f1d1d;
  --destructive-foreground: #F9F7F2;

  --chart-1: #C19A6B;
  --chart-2: #8D6E63;
  --chart-3: #5D4037;
  --chart-4: #D7CCC8;
  --chart-5: #EFEBE9;

  --sidebar: #F9F7F2;
  --sidebar-foreground: #5D4037;
  --sidebar-primary: #5D4037;
  --sidebar-primary-foreground: #FFFFFF;
  --sidebar-accent: #F2EBE3;
  --sidebar-accent-foreground: #5D4037;
  --sidebar-border: #EAE5DD;
  --sidebar-ring: #C19A6B;
}

.dark {
  --background: #1a1512;
  --foreground: #F9F7F2;
  --card: #241e1a;
  --card-foreground: #F9F7F2;
  --primary: #C19A6B;
  --primary-foreground: #1a1512;
  --secondary: #2c221e;
  --secondary-foreground: #F9F7F2;
  --muted: #2c221e;
  --muted-foreground: #a89c96;
  --accent: #C19A6B;
  --accent-foreground: #1a1512;
  --destructive: #7f1d1d;
  --destructive-foreground: #F9F7F2;
  --border: #2c221e;
  --input: #2c221e;
  --ring: #C19A6B;
}

@layer base {
  *,
  *::before,
  *::after,
  ::backdrop {
    box-sizing: border-box;
    border: 0 solid var(--border);
    margin: 0;
    padding: 0;
    outline: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html,
  :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif;
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
  }

  body {
    min-height: 100vh;
    line-height: inherit;
    font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: var(--background);
    color: var(--foreground);
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var(--font-serif);
    letter-spacing: 0.03em;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  b,
  strong {
    font-weight: bolder;
  }

  code,
  kbd,
  samp,
  pre {
    font-family: var(--font-mono);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub,
  sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  html {
    scroll-behavior: smooth;
  }

  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 10px;
  }

  ::-webkit-scrollbar-track {
    background: var(--background);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--muted-foreground);
    border-radius: 5px;
    border: 2px solid var(--background);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
  }
}

@layer components {
  .admin-create-button {
    border-color: #1f2a44;
    color: #1f2a44;
    background-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .admin-create-button:hover:not(:disabled),
  .admin-create-button:focus-visible:not(:disabled) {
    background-color: #1f2a44;
    color: #f1f3f6;
  }

  .hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .hide-scrollbar::-webkit-scrollbar {
    display: none;
  }
}
