@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;

    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;

    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;

    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;

    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;

    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;

    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;

    --radius: 0.5rem;

    /* Add custom shadow variables */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.02);
    --shadow-md: 0 1px 3px 0 rgb(0 0 0 / 0.02), 0 1px 2px -1px rgb(0 0 0 / 0.02);
    --shadow-lg: 0 4px 6px -1px rgb(0 0 0 / 0.02), 0 2px 4px -2px rgb(0 0 0 / 0.02);
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground text-sm font-normal;
    font-feature-settings: "rlig" 1, "calt" 1;
  }
  
  /* Platform section label */
  .sidebar-label {
    @apply text-xs font-normal text-gray-500;
  }
  
  /* Sidebar menu items */
  .sidebar-item {
    @apply text-sm font-[400] text-gray-500 hover:text-gray-900;
  }
  
  /* Active sidebar item */
  .sidebar-item-active {
    @apply text-gray-900;
  }
  
  /* Main content */
  h1 {
    @apply text-[2.5rem] font-extralight text-gray-900/80;
  }
  
  /* Card titles and section headings */
  h2, h3, h4, h5, h6, .card-title {
    @apply text-lg font-normal text-gray-600/90 tracking-[-0.02em];
  }
  
  /* Regular text */
  p {
    @apply text-sm font-normal text-gray-500;
  }
  
  /* Secondary/muted text */
  .text-muted {
    @apply text-sm font-normal text-gray-400;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground));
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--muted)) hsl(var(--background));
}

/* Ensure consistent full-width layout */
#__next {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

main {
  flex: 1;
  width: 100%;
}

/* Apply Instrument Sans to React Flow components */
.react-flow__node,
.react-flow__edge-text,
.react-flow__attribution {
  font-family: var(--font-instrument-sans), sans-serif;
}

/* Update sidebar styles */
[data-sidebar="sidebar"] {
  @apply bg-zinc-500/[0.02] text-gray-900 border-r border-zinc-500/[0.02];
}

/* Update the hover states for menu items */
.sidebar-item {
  @apply hover:bg-zinc-500/[0.03] hover:text-gray-900;
}

/* Active state */
.sidebar-item-active {
  @apply bg-zinc-500/[0.05] text-gray-900;
}
