/* Minimal fallback styles when CDNs are unavailable.
   Tailwind (if loaded) will override most of these. */

:root {
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	color-scheme: light;
}

html, body {
	margin: 0;
	padding: 0;
	background: #f9fafb; /* gray-50 */
	color: #111827;      /* gray-900 */
}

.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

/* Basic layout helpers */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-1 { margin-top: .25rem; }
.text-center { text-align: center; }
.text-sm { font-size: .875rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-bold { font-weight: 700; }
.rounded, .rounded-md, .rounded-lg { border-radius: .5rem; }
.shadow, .shadow-lg { box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06); }
.bg-white { background: #fff; }
.bg-gray-50 { background: #f9fafb; }
.bg-green-800 { background: #065f46; }
.text-white { color: #fff; }
.text-gray-800 { color: #1f2937; }
.text-gray-600 { color: #4b5563; }
.hover\:text-green-200:hover { color: #bbf7d0; }
.hover\:bg-green-700:hover { background: #047857; }
.border { border: 1px solid #e5e7eb; }
.border-l-4 { border-left: 4px solid #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.rounded-full { border-radius: 9999px; }

/* Buttons */
button, .btn, a[class*="bg-"] {
	display: inline-block;
	cursor: pointer;
	text-decoration: none;
}

.bg-green-600 { background: #16a34a; color: #fff; }
.bg-blue-600 { background: #2563eb; color: #fff; }
.bg-gray-300 { background: #d1d5db; color: #374151; }
.bg-yellow-500 { background: #eab308; color: #111827; }

/* Inputs */
input[type="text"], input[type="email"], input[type="password"], input[type="date"], select, textarea {
	width: 100%;
	padding: .5rem .75rem;
	border: 1px solid #d1d5db;
	border-radius: .375rem;
	background: #fff;
}

/* Simple nav */
nav {
	background: #065f46;
	color: #fff;
}
nav a {
	color: #e5e7eb;
	text-decoration: none;
	margin-right: 1rem;
}
nav a:hover { color: #bbf7d0; }

/* Cards/sections */
.section, .card, .panel, .p-6 { padding: 1.5rem; background: #fff; border-radius: .5rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem; border-bottom: 1px solid #e5e7eb; text-align: left; }
thead { background: #f9fafb; }

/* Utilities used by the app */
.grid { display: grid; gap: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.overflow-hidden { overflow: hidden; }
.hover\:bg-gray-50:hover { background: #f9fafb; }

/* Badges */
.text-xs { font-size: .75rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.bg-green-100 { background: #dcfce7; color: #166534; }
.bg-yellow-100 { background: #fef9c3; color: #854d0e; }
.bg-red-100 { background: #fee2e2; color: #991b1b; }
.bg-blue-100 { background: #dbeafe; color: #1e3a8a; }


