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

:root {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
}

body {
  color: rgb(241 245 249);
  background: rgb(2 6 23);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

.dashboard-workspace main > section > header h1 {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.dashboard-workspace main > section > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}

.dashboard-workspace dialog h2 {
  font-size: 1rem;
  line-height: 1.5rem;
}

@media (min-width: 768px) and (pointer: fine) {
  .dashboard-workspace main {
    padding: 12px;
    font-size: 12px;
    line-height: 1.4;
  }

  .dashboard-workspace main > section > header h1 {
    font-size: 18px;
    line-height: 24px;
  }

  .dashboard-workspace main > section > :not([hidden]) ~ :not([hidden]) {
    margin-top: 10px;
  }

  .dashboard-workspace main .text-sm {
    font-size: 12px;
    line-height: 18px;
  }

  .dashboard-workspace main .text-xs {
    font-size: 11px;
    line-height: 16px;
  }

  .dashboard-workspace main button,
  .dashboard-workspace main input:not([type="checkbox"]):not([type="radio"]),
  .dashboard-workspace main select {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 18px;
  }

  .dashboard-workspace main th {
    padding: 8px 12px;
    font-size: 11px;
    line-height: 16px;
  }

  .dashboard-workspace main td {
    padding: 8px 12px;
    font-size: 12px;
    line-height: 18px;
  }

  .dashboard-workspace main [class~="p-5"],
  .dashboard-workspace main [class~="p-4"] {
    padding: 12px;
  }

  .dashboard-workspace main [class~="py-4"] {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .dashboard-workspace main [class~="gap-4"] {
    gap: 10px;
  }

  .dashboard-workspace main [class~="h-9"][class~="w-9"],
  .dashboard-workspace main [class~="h-10"][class~="w-10"] {
    height: 28px;
    width: 28px;
  }
}

/* Custom scrollbar for data tables and logs */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.8);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 1);
}
