/* NextUI/Heroui theme variables - System theme support */
/* Default (light mode) - used when no system preference or light preference */
:root {
  --nextui-background: #ffffff;
  --nextui-foreground: #11181c;
  --nextui-content1: #ffffff;
  --nextui-content2: #f4f4f5;
  --nextui-content3: #e4e4e7;
  --nextui-content4: #d4d4d8;
  --nextui-default-50: #fafafa;
  --nextui-default-100: #f4f4f5;
  --nextui-default-200: #e4e4e7;
  --nextui-default-300: #d4d4d8;
  --nextui-default-400: #a1a1aa;
  --nextui-default-500: #71717a;
  --nextui-default-600: #52525b;
  --nextui-default-700: #3f3f46;
  --nextui-default-800: #27272a;
  --nextui-default-900: #18181b;
  --nextui-divider: #e4e4e7;
  --nextui-primary: #006fee;
}

:root[data-theme="light"] {
  --nextui-background: #ffffff;
  --nextui-foreground: #11181c;
  --nextui-content1: #ffffff;
  --nextui-content2: #f4f4f5;
  --nextui-content3: #e4e4e7;
  --nextui-content4: #d4d4d8;
  --nextui-default-50: #fafafa;
  --nextui-default-100: #f4f4f5;
  --nextui-default-200: #e4e4e7;
  --nextui-default-300: #d4d4d8;
  --nextui-default-400: #a1a1aa;
  --nextui-default-500: #71717a;
  --nextui-default-600: #52525b;
  --nextui-default-700: #3f3f46;
  --nextui-default-800: #27272a;
  --nextui-default-900: #18181b;
  --nextui-divider: #e4e4e7;
  --nextui-primary: #006fee;
}

/* Dark mode class support (for manual override if needed) */
[class~="dark"] {
  --nextui-background: #000000;
  --nextui-foreground: #ececef;
  --nextui-content1: #18181b;
  --nextui-content2: #27272a;
  --nextui-content3: #3f3f46;
  --nextui-content4: #52525b;
  --nextui-default-50: #18181b;
  --nextui-default-100: #27272a;
  --nextui-default-200: #3f3f46;
  --nextui-default-300: #52525b;
  --nextui-default-400: #71717a;
  --nextui-default-500: #a1a1aa;
  --nextui-default-600: #d4d4d8;
  --nextui-default-700: #e4e4e7;
  --nextui-default-800: #f4f4f5;
  --nextui-default-900: #ffffff;
  --nextui-divider: #3f3f46;
  --nextui-primary: #006fee;
  --nextui-primary-600: rgb(96 165 250 / var(--tw-text-opacity));
}

:root[data-theme="dark"],
[class~="dark"] {
  --nextui-background: #000000;
  --nextui-foreground: #ececef;
  --nextui-content1: #18181b;
  --nextui-content2: #27272a;
  --nextui-content3: #3f3f46;
  --nextui-content4: #52525b;
  --nextui-default-50: #18181b;
  --nextui-default-100: #27272a;
  --nextui-default-200: #3f3f46;
  --nextui-default-300: #52525b;
  --nextui-default-400: #71717a;
  --nextui-default-500: #a1a1aa;
  --nextui-default-600: #d4d4d8;
  --nextui-default-700: #e4e4e7;
  --nextui-default-800: #f4f4f5;
  --nextui-default-900: #ffffff;
  --nextui-divider: #3f3f46;
  --nextui-primary: #006fee;
  --nextui-primary-600: rgb(96 165 250 / var(--tw-text-opacity));
}

body {
  background-color: var(--nextui-background);
  color: var(--nextui-foreground);
  transition: background-color 0.2s, color 0.2s;
}

a {
  color: var(--nextui-primary);
  transition: color 0.2s;
}

a:hover {
  color: var(--nextui-primary-600);
}

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

.text-primary {
  color: rgb(96 165 250 / var(--tw-text-opacity));
}

.text-primary:hover {
  color: rgb(96 165 250 / var(--tw-text-opacity));
}

/* System theme preference - matches Next.js defaultTheme="system" */
/* Light mode (default) */
@media (prefers-color-scheme: light) {
  :root {
    --nextui-background: #ffffff;
    --nextui-foreground: #11181c;
    --nextui-content1: #ffffff;
    --nextui-content2: #f4f4f5;
    --nextui-content3: #e4e4e7;
    --nextui-content4: #d4d4d8;
    --nextui-default-50: #fafafa;
    --nextui-default-100: #f4f4f5;
    --nextui-default-200: #e4e4e7;
    --nextui-default-300: #d4d4d8;
    --nextui-default-400: #a1a1aa;
    --nextui-default-500: #71717a;
    --nextui-default-600: #52525b;
    --nextui-default-700: #3f3f46;
    --nextui-default-800: #27272a;
    --nextui-default-900: #18181b;
    --nextui-divider: #e4e4e7;
    --nextui-primary: #006fee;
  }
}

/* Dark mode (system preference) */
@media (prefers-color-scheme: dark) {
  :root {
    --nextui-background: #000000;
    --nextui-foreground: #ececef;
    --nextui-content1: #18181b;
    --nextui-content2: #27272a;
    --nextui-content3: #3f3f46;
    --nextui-content4: #52525b;
    --nextui-default-50: #18181b;
    --nextui-default-100: #27272a;
    --nextui-default-200: #3f3f46;
    --nextui-default-300: #52525b;
    --nextui-default-400: #71717a;
    --nextui-default-500: #a1a1aa;
    --nextui-default-600: #d4d4d8;
    --nextui-default-700: #e4e4e7;
    --nextui-default-800: #f4f4f5;
    --nextui-default-900: #ffffff;
    --nextui-divider: #3f3f46;
    --nextui-primary: #006fee;
  }
}

.dark\:bg-gray-900 {
  background-color: var(--nextui-content1);
}

.dark\:text-gray-100 {
  color: var(--nextui-foreground);
}

.dark\:text-gray-400 {
  color: var(--nextui-default-500);
}

.dark\:border-gray-700 {
  border-color: var(--nextui-divider);
}

.dark\:hover\:bg-gray-800:hover {
  background-color: var(--nextui-content2);
}

.dark\:bg-gray-800 {
  background-color: var(--nextui-content1);
}

.dark\:bg-gray-700 {
  background-color: var(--nextui-content2);
}

.bg-white {
  background-color: var(--nextui-content1);
}

.text-gray-900 {
  color: var(--nextui-foreground);
}

.text-gray-600 {
  color: var(--nextui-default-600);
}

.text-gray-500 {
  color: var(--nextui-default-500);
}

.text-gray-400 {
  color: var(--nextui-default-400);
}

.border-gray-200 {
  border-color: var(--nextui-divider);
}

.border-gray-700 {
  border-color: var(--nextui-divider);
}

/* Secondary Navigation Active State */
.secondary-nav-active {
  border-color: var(--nextui-primary) !important;
  color: var(--nextui-primary-600) !important;
  background-color: rgba(0, 111, 238, 0.1);
}

@media (prefers-color-scheme: dark) {
  .secondary-nav-active {
    background-color: rgba(0, 111, 238, 0.2);
    color: #60a5fa !important;
    border-color: #60a5fa !important;
  }
}

/* Prose styles */
.prose {
  max-width: 65ch;
}

.prose-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.prose h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.max-w-none {
  max-width: none;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--nextui-divider);
  text-align: left;
  font-size: 0.875rem;
}

th {
  background-color: var(--nextui-content2);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
}

tr:nth-child(even) td {
  background-color: var(--nextui-content1);
}

tr:nth-child(odd) td {
  background-color: var(--nextui-content2);
}

.table-header {
  background-color: var(--nextui-content2);
}

.table-row {
  background-color: var(--nextui-content1);
}

.table-row:nth-child(even) {
  background-color: var(--nextui-content2);
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-buy {
  background-color: #dcfce7;
  color: #166534;
}

.badge-sell {
  background-color: #fee2e2;
  color: #991b1b;
}

:root[data-theme="dark"] .badge-buy {
  background-color: #14532d;
  color: #bbf7d0;
}

:root[data-theme="dark"] .badge-sell {
  background-color: #7f1d1d;
  color: #fecaca;
}

.badge-green {
  background-color: #dcfce7;
  color: #166534;
}

.badge-red {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-option {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-call {
  background-color: #dcfce7;
  color: #166534;
}

.badge-put {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-neutral {
  background-color: #e4e4e7;
  color: #3f3f46;
}

:root[data-theme="dark"] .badge-call {
  background-color: #14532d;
  color: #bbf7d0;
}

:root[data-theme="dark"] .badge-put {
  background-color: #7f1d1d;
  color: #fecaca;
}

:root[data-theme="dark"] .badge-neutral {
  background-color: #3f3f46;
  color: #e4e4e7;
}

/* Quantity colors */
.quantity-buy {
  color: #4ade80;
  font-weight: 600;
}

.quantity-sell {
  color: #f87171;
  font-weight: 600;
}

:root[data-theme="dark"] .quantity-buy {
  color: #4ade80;
}

:root[data-theme="dark"] .quantity-sell {
  color: #f87171;
}

/* Card styles */
.metric-card,
.stat-card {
  background-color: var(--nextui-content1);
  border: 1px solid var(--nextui-divider);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: background-color 0.2s;
}

.metric-card:hover,
.stat-card:hover {
  background-color: var(--nextui-content2);
}

/* Pagination styles */
.pagination-button {
  border: 1px solid var(--nextui-divider);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.2s, color 0.2s;
}

.pagination-button:hover {
  background-color: var(--nextui-content2);
}


