/* PATH: static/css/fallback.css
 * Minimal fallback styles to keep UI usable when Tailwind CDN is unavailable.
 * This is NOT a full Tailwind replacement; it only preserves layout/readability.
 */

/* Base reset-ish */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; font-family: sans-serif; color: #111827; background: #eefaf6; }
img { max-width: 100%; height: auto; }

/* Container widths */
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.p-6 { padding: 1.5rem; }
.mt-2 { margin-top: .5rem; }
.mb-2 { margin-bottom: .5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.gap-2 { gap: .5rem; }

/* Display & layout */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1 1 0%; }
.min-h-screen { min-height: 100vh; }
.rounded { border-radius: .25rem; }
.rounded-md { border-radius: .375rem; }
.rounded-b-xl { border-bottom-left-radius: .75rem; border-bottom-right-radius: .75rem; }
.rounded-xl { border-radius: .75rem; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.border { border: 1px solid rgba(0,0,0,.1); }
.border-gray-200\/60 { border-color: rgba(229,231,235,.6); }

/* Text */
.text-sm { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-blue-700 { color: #1d4ed8; }
.text-red-700 { color: #b91c1c; }

/* Buttons & links */
.button, button, a.button, .icon-link { cursor: pointer; text-decoration: none; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-blue-200:hover { background-color: #bfdbfe; }
.hover\:bg-red-200:hover { background-color: #fecaca; }

/* Utilities used in layout */
.bg-transparent { background-color: transparent; }
.bg-white\/60 { background-color: rgba(255,255,255,.6); }
.bg-green-100 { background-color: #d1fae5; }
.bg-red-100 { background-color: #fee2e2; }
.bg-yellow-100 { background-color: #fef3c7; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-blue-100 { background-color: #dbeafe; }
.border-blue-600 { border-color: #2563eb; }
.border-red-700 { border-color: #b91c1c; }
.rounded-md { border-radius: .375rem; }

/* Simple table tweaks */
table { border-collapse: collapse; width: 100%; }
th, td { padding: .5rem; border-bottom: 1px solid rgba(0,0,0,.06); text-align: inherit; }
thead { background: rgba(255,255,255,.6); }

/* Screen-reader friendly hiding (approximation) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* RTL helpers (document already uses dir=rtl) */
[dir="rtl"] .text-left { text-align: left; }
[dir="rtl"] .text-right { text-align: right; }

/* Small icon helpers used in dashboard */
.h-12 { height: 3rem; }
.w-12 { width: 3rem; }
.h-16 { height: 4rem; }
.w-16 { width: 4rem; }
.h-20 { height: 5rem; }
.w-20 { width: 5rem; }

/* Badge approximations */
.clock-badge, .date-badge { display: inline-flex; align-items: center; padding: .25rem .75rem; border-radius: 9999px; border: 1px solid rgba(64,224,208,0.35); background: rgba(64,224,208,0.18); font-weight: 800; }

/* Ensure pattern frame container doesn't block content */
.page-chrome, main { position: relative; z-index: 1; }

