/* Fallback CSS for when external CDNs fail */

/* Basic Tailwind-like utilities */
.hidden { display: none !important; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-md { max-width: 28rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-white { color: white; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.bg-white { background-color: white; }
.bg-blue-600 { background-color: #2563eb; }
.bg-red-100 { background-color: #fee2e2; }
.bg-green-100 { background-color: #dcfce7; }
.border { border-width: 1px; }
.border-gray-300 { border-color: #d1d5db; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; }

/* Basic FontAwesome fallbacks */
.fas, .fa { font-family: 'Font Awesome 5 Free', sans-serif; font-weight: 900; }
.fa-times::before { content: '✕'; }
.fa-eye::before { content: '👁'; }
.fa-eye-slash::before { content: '🚫'; }
.fa-spinner::before { content: '⟳'; }
.fa-check-circle::before { content: '✓'; }
.fa-exclamation-circle::before { content: '!'; }
.fa-info-circle::before { content: 'i'; }

/* Basic responsive */
@media (max-width: 768px) {
    .max-w-md { max-width: 90%; }
    .p-6 { padding: 1rem; }
}

/* Animation fallback */
.fa-spin { animation: spin 1s linear infinite; }
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Basic layout */
body { 
    font-family: system-ui, -apple-system, sans-serif; 
    margin: 0; 
    padding: 0;
    background-color: #f9fafb;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1rem; 
}

/* Button styles */
button, .btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

/* Form styles */
input, textarea, select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 28rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
