/* Theme variables – define in globals.css per project rules */
:root {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8e8ed;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: #d2d2d7;
  --error: #ff3b30;
  --success: #34c759;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 64px;
  --header-height: 56px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

[data-theme="dark"] {
  --bg-primary: #1d1d1f;
  --bg-secondary: #2d2d2f;
  --bg-tertiary: #3d3d3f;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --accent: #2997ff;
  --accent-hover: #4dabff;
  --border: #424245;
  --error: #ff453a;
  --success: #30d158;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  min-height: 100vh;
  transition: background 0.2s, color 0.2s;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, .btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
}
button:hover, .btn:hover { background: var(--accent-hover); }
input, select, textarea {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}
.card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
