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

:root {
  /* Default: Corporate Dark Palette */
  --bg-primary: #0f172a;
  /* Deep Slate */
  --bg-secondary: #1e293b;
  /* Panel Grey */
  --bg-tertiary: #334155;
  /* Item Hover */

  --text-primary: #f8fafc;
  /* White-ish */
  --text-secondary: #94a3b8;
  /* Muted Grey */
  --text-accent: #38bdf8;
  /* Sky Blue */

  --accent-primary: #0ea5e9;
  /* Corporate Blue */
  --accent-secondary: #eab308;
  /* Alert/Gold */
  --border-color: #334155;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 64px;
  --header-height: 64px;
}

[data-theme='light'] {
  --bg-primary: #e2e8f0;
  /* Darker Grey/Sage for better contrast */
  --bg-secondary: #ffffff;
  /* White */
  --bg-tertiary: #f1f5f9;
  /* Lighter Grey Hover */

  --text-primary: #1e293b;
  /* darker text */
  --text-secondary: #64748b;
  /* Muted Grey */
  --text-accent: #0284c7;
  /* Darker Sky Blue */

  --accent-primary: #0284c7;
  /* Corporate Blue */
  --accent-secondary: #ca8a04;
  /* Darker Gold */
  --border-color: #94a3b8;
  /* Darker Border for visibility */

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  transition: all 0.2s ease;
}

* {
  box-sizing: border-box;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

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