/* Tailwind CSS base styles for production */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  
  --success-100: #dcfce7;
  --success-800: #166534;
  
  --warning-100: #fef3c7;
  --warning-800: #92400e;
  
  --error-100: #fee2e2;
  --error-800: #991b1b;
  
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--neutral-900);
  background-color: var(--neutral-50);
}

/* Status indicators */
.status-healthy {
  background-color: var(--success-100);
  color: var(--success-800);
  border: 1px solid #bbf7d0;
}

.status-degraded {
  background-color: var(--warning-100);
  color: var(--warning-800);
  border: 1px solid #fed7aa;
}

.status-critical, .status-error {
  background-color: var(--error-100);
  color: var(--error-800);
  border: 1px solid #fecaca;
}

/* Pulse animation */
.pulse-dot {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Utility classes */
.bg-gray-50 { background-color: var(--neutral-50); }
.bg-white { background-color: white; }
.text-gray-900 { color: var(--neutral-900); }
.text-gray-600 { color: var(--neutral-600); }
.text-gray-500 { color: var(--neutral-500); }
.text-blue-600 { color: var(--primary-600); }
.text-blue-700 { color: var(--primary-700); }
.text-green-800 { color: var(--success-800); }
.text-yellow-800 { color: var(--warning-800); }
.text-red-800 { color: var(--error-800); }

.bg-green-100 { background-color: var(--success-100); }
.bg-yellow-100 { background-color: var(--warning-100); }
.bg-red-100 { background-color: var(--error-100); }
.bg-blue-100 { background-color: var(--primary-100); }
.bg-gray-100 { background-color: var(--neutral-100); }

.border { border: 1px solid var(--neutral-200); }
.border-b { border-bottom: 1px solid var(--neutral-200); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.m-2 { margin: 0.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

.cursor-pointer { cursor: pointer; }
.transition-colors { transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out; }

/* Responsive grid */
@media (min-width: 768px) {
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.gap-6 { gap: 1.5rem; }

/* Tables */
.min-w-full { min-width: 100%; }
.divide-y { border-top-width: 1px; }
.divide-gray-200 { border-color: var(--neutral-200); }
.bg-gray-50 { background-color: var(--neutral-50); }
.uppercase { text-transform: uppercase; }
.whitespace-nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Loading spinner */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Fixed positioning */
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-600);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-700);
}

.btn-secondary {
  background-color: var(--neutral-600);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--neutral-700);
}

.btn-orange {
  background-color: #ea580c;
  color: white;
}

.btn-orange:hover {
  background-color: #c2410c;
}

/* Additional Tailwind-like utilities */
.sm\\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.lg\\:px-8 { padding-left: 2rem; padding-right: 2rem; }
.overflow-x-auto { overflow-x: auto; }
.divide-y > * + * { border-top: 1px solid var(--neutral-200); }

/* Grid utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* Spacing utilities */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }

/* Flex utilities */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }

/* Border utilities */
.border-t { border-top: 1px solid var(--neutral-200); }
.border-gray-200 { border-color: var(--neutral-200); }
.border-blue-500 { border-color: var(--primary-500); }
.border-transparent { border-color: transparent; }
.border-b-2 { border-bottom-width: 2px; }

/* Width/Height utilities */
.w-64 { width: 16rem; }
.w-3 { width: 0.75rem; }
.h-full { height: 100%; }
.h-5 { height: 1.25rem; }
.h-3 { height: 0.75rem; }
.h-6 { width: 1.5rem; height: 1.5rem; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }

/* Display utilities */
.block { display: block; }
.inline-flex { display: inline-flex; }
.table { display: table; }

/* Text utilities */
.text-xs { font-size: 0.75rem; }
.font-semibold { font-weight: 600; }
.leading-tight { line-height: 1.25; }

/* Hover states */
.hover\\:bg-neutral-100:hover { background-color: var(--neutral-100); }
.hover\\:text-neutral-900:hover { color: var(--neutral-900); }
.hover\\:text-gray-700:hover { color: var(--neutral-700); }
.hover\\:border-gray-300:hover { border-color: var(--neutral-300); }
.hover\\:bg-orange-700:hover { background-color: #c2410c; }
.hover\\:bg-gray-700:hover { background-color: var(--neutral-700); }
.hover\\:text-orange-800:hover { color: #9a3412; }

/* Background utilities */
.bg-primary-50 { background-color: var(--primary-50); }
.bg-orange-600 { background-color: #ea580c; }
.bg-green-400 { background-color: #4ade80; }
.bg-red-400 { background-color: #f87171; }
.bg-black { background-color: black; }

/* Opacity */
.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }

/* Rounded corners */
.rounded-full { border-radius: 9999px; }

/* Form elements */
select, input[type="file"] {
  border: 1px solid var(--neutral-200);
  border-radius: 0.375rem;
  padding: 0.5rem;
  font-size: 0.875rem;
}

select:focus, input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dashed border */
.border-dashed { border-style: dashed; }
.border-2 { border-width: 2px; }

/* Text colors */
.text-4xl { font-size: 2.25rem; }
.text-gray-400 { color: #9ca3af; }
.text-gray-300 { color: #d1d5db; }
.text-gray-700 { color: var(--neutral-700); }

/* Rounded elements */
.rounded-md { border-radius: 0.375rem; }

/* Disabled states */
.opacity-50 { opacity: 0.5; }
.cursor-not-allowed { cursor: not-allowed; }

/* Width utilities */
.w-full { width: 100%; }

/* Justify content */
.justify-end { justify-content: flex-end; }

/* Progress bar */
.transition-all { transition: all 0.3s ease; }
.duration-300 { transition-duration: 300ms; }

/* Border colors */
.border-gray-300 { border-color: #d1d5db; }

/* Alpha styles for better compatibility */
[x-cloak] { display: none !important; }