/* Production-ready CSS to replace Tailwind CDN */
/* Reset and base styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; line-height: 1.5; color: #374151; }

/* Layout */
.min-h-screen { min-height: 100vh; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.h-16 { height: 4rem; }
.h-12 { height: 3rem; }
.h-64 { height: 16rem; }
.w-12 { width: 3rem; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.ml-6 { margin-left: 1.5rem; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.inline-flex { display: inline-flex; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Spacing */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pt-1 { padding-top: 0.25rem; }
.m-4 { margin: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-6 { margin-left: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.text-gray-500 { color: #6b7280; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-white { color: #fff; }
.text-indigo-600 { color: #4f46e5; }
.text-green-600 { color: #16a34a; }
.text-red-600 { color: #dc2626; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }

/* Backgrounds */
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-green-100 { background-color: #dcfce7; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-red-100 { background-color: #fee2e2; }

/* Borders */
.border { border: 1px solid #d1d5db; }
.border-b { border-bottom: 1px solid #d1d5db; }
.border-b-2 { border-bottom: 2px solid #d1d5db; }
.border-t { border-top: 1px solid #d1d5db; }
.border-transparent { border-color: transparent; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-indigo-200 { border-color: #c7d2fe; }
.border-indigo-500 { border-color: #6366f1; }
.border-green-200 { border-color: #bbf7d0; }
.border-red-200 { border-color: #fecaca; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-full { border-radius: 9999px; }
.divide-y > * + * { border-top: 1px solid #e5e7eb; }
.divide-gray-200 > * + * { border-top-color: #e5e7eb; }

/* Display */
.block { display: block; }
.hidden { display: none; }
.whitespace-nowrap { white-space: nowrap; }

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

/* Shadows */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

/* Focus states */
.focus\:border-indigo-500:focus { border-color: #6366f1; }
.focus\:ring-indigo-500:focus { --tw-ring-color: #6366f1; }

/* Hover states */
.hover\:bg-indigo-700:hover { background-color: #4338ca; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:text-indigo-900:hover { color: #312e81; }
.hover\:text-green-900:hover { color: #14532d; }
.hover\:text-red-900:hover { color: #7f1d1d; }
.hover\:text-gray-900:hover { color: #111827; }

/* Transitions */
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Form elements */
input, select, textarea {
    appearance: none;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Form utility classes */
.border-gray-300 { border-color: #d1d5db; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

/* Button variants */
.bg-red-500 { background-color: #ef4444; }
.bg-green-500 { background-color: #10b981; }
.hover\\:bg-red-600:hover { background-color: #dc2626; }
.hover\\:bg-green-600:hover { background-color: #059669; }
.hover\\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\\:text-gray-900:hover { color: #111827; }

/* Additional button and navigation styles */
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.rounded-md { border-radius: 0.375rem; }
.transition-colors { transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; }
.space-x-4 > * + * { margin-left: 1rem; }

/* Tables */
table { border-collapse: collapse; width: 100%; }
th, td { padding: 1rem 1.5rem; text-align: left; }
th { background-color: #f9fafb; font-weight: 500; font-size: 0.75rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; }

/* Fixed positioning for notifications */
.fixed { position: fixed; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.z-50 { z-index: 50; }

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 1s linear infinite; }

/* Responsive - hidden classes for mobile/desktop */
.hidden { display: none; }

/* Mobile navigation improvements */
@media (max-width: 639px) {
  .space-x-8 > * + * { margin-left: 0.5rem; }
  .px-1 { padding-left: 0.125rem; padding-right: 0.125rem; }
  .text-xs { font-size: 0.75rem; }
}

@media (min-width: 640px) {
  .sm\\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\\:ml-6 { margin-left: 1.5rem; }
  .sm\\:flex { display: flex; }
  .sm\\:space-x-8 > * + * { margin-left: 2rem; }
  .sm\\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
}

@media (min-width: 1024px) {
  .lg\\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Focus and hover states - enhanced */
.focus\\:border-indigo-500:focus { border-color: #6366f1; outline: none; }
.focus\\:ring-indigo-500:focus { 
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.hover\\:border-gray-300:hover { border-color: #d1d5db; }
.hover\\:text-gray-700:hover { color: #374151; }
.hover\\:bg-indigo-700:hover { background-color: #4338ca; }
.hover\\:text-indigo-900:hover { color: #312e81; }
.hover\\:text-green-900:hover { color: #14532d; }
.hover\\:text-red-900:hover { color: #7f1d1d; }