/* X1-Explorer Theme Colors for OneUptime */

:root {
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-primary-light: #60a5fa;
}

@layer base {
  * {
    @apply border-gray-200 dark:border-gray-800;
  }

  body {
    @apply bg-white text-gray-900 dark:bg-gray-900 dark:text-white;
    font-family: 'Inter', system-ui, sans-serif;
  }

  /* Secondary text colors */
  .text-secondary {
    @apply text-gray-600 dark:text-gray-400;
  }

  .font-mono, code, pre {
    font-family: 'JetBrains Mono', 'Consolas', monospace !important;
  }
}

@layer components {
  /* Primary color for links and buttons */
  a {
    @apply text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300;
  }

  button:not(.btn-secondary):not(.btn-danger) {
    @apply bg-blue-600 hover:bg-blue-700 text-white;
  }

  /* Card components matching X1-Explorer */
  .card {
    @apply bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700;
  }

  .card-header {
    @apply p-6 border-b border-gray-200 dark:border-gray-700;
  }

  .card-content {
    @apply p-6;
  }

  .card-title {
    @apply text-lg font-semibold text-gray-900 dark:text-gray-100;
  }

  /* Table components */
  .table-head {
    @apply bg-gray-50 dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-600;
  }

  .table-row {
    @apply hover:bg-gray-50 dark:hover:bg-gray-800;
  }

  /* Badges matching X1-Explorer */
  .badge {
    @apply inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold;
  }

  .badge-success {
    @apply border-transparent bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200;
  }

  .badge-warning {
    @apply border-transparent bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200;
  }

  .badge-error {
    @apply border-transparent bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200;
  }
}

/* Custom scrollbar matching X1-Explorer */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  @apply bg-gray-100 dark:bg-gray-800;
}

::-webkit-scrollbar-thumb {
  @apply bg-gray-300 dark:bg-gray-600 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
  @apply bg-gray-400 dark:bg-gray-500;
}
