@import "tailwindcss";

@variant dark (&:where(.dark, .dark *));

:root {
  --background: #f8fafc;
  /* Slate 50 */
  --foreground: #0f172a;
  /* Slate 900 */
}

.dark {
  --background: #020617;
  /* Slate 950 - Deep Premium Dark */
  --foreground: #f1f5f9;
  /* Slate 100 */
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-inter), system-ui, sans-serif;
}

/* Modular Responsive Table System */
@media (max-width: 768px) {
  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 1px solid theme('colors.slate.200');
    background-color: theme('colors.white');
    overflow: hidden;
  }

  .dark .responsive-table tbody tr {
    border-color: theme('colors.slate.700');
    background-color: theme('colors.slate.800');
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid theme('colors.slate.100');
    font-size: 0.875rem;
  }

  .dark .responsive-table td {
    border-color: theme('colors.slate.700');
  }

  .responsive-table td:last-child {
    border-bottom: none;
  }

  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: theme('colors.slate.500');
    margin-right: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
  }

  .dark .responsive-table td::before {
    color: theme('colors.slate.400');
  }

  /* Full width inputs in responsive mode */
  .responsive-table input {
    width: 100%;
    max-width: none;
  }
}