/* Base styles */
:root {
  /* Light theme variables */
  --bg-color: #f5f7fa;
  --text-color: #374151;
  --text-muted: #6b7280;
  --heading-color: #111827;
  --border-color: #e5e7eb;
  --accent-color: #4f46e5;
  --accent-hover: #4338ca;
  --link-color: #3b82f6;
  --link-hover: #2563eb;
  --card-bg: #ffffff;
  --details-bg: #f9fafb;
  --hover-bg: #f3f4f6;
  --input-bg: #ffffff;
  --critical-bg: #fee2e2;
  --critical-text: #ef4444;
  --link-color: #3b82f6;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  line-height: 1.2;
  color: var(--heading-color);
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
}

/* Dark mode */
body.dark-mode {
  --bg-color: #1e1e1e;
  --text-color: #e4e4e4;
  --text-muted: #a1a1aa;
  --heading-color: #f4f4f5;
  --border-color: #2d2d2d;
  --accent-color: #6366f1;
  --card-bg: #252526;
  --details-bg: #2d2d30;
  --hover-bg: #313135;
  --input-bg: #3c3c3c;
  --critical-bg: #7f1d1d;
  --critical-text: #fca5a5;
  --link-color: #60a5fa;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(156, 163, 175, 0.8);
}

/* Dark mode scrollbar */
body.dark-mode ::-webkit-scrollbar-thumb {
  background-color: rgba(75, 85, 99, 0.5);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background-color: rgba(75, 85, 99, 0.8);
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* App container */
#app {
  height: 100%;
  width: 100%;
}