/* ============================================
   ManuSystems — Utility Classes
   Substitui Tailwind CDN
   Desert Rose Design System
   ============================================ */

/* --- Display --- */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* --- Flexbox --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-1 { flex: 1 1 0%; }
.flex-grow { flex-grow: 1; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.self-end { align-self: flex-end; }
.shrink-0 { flex-shrink: 0; }

/* --- Grid --- */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- Gap --- */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* --- Spacing (margin) --- */
.m-0 { margin: 0; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mt-0_5,
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Spacing (padding) --- */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.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-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1_5,
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2_5,
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-0 { padding-top: 0; }
.pt-4 { padding-top: 1rem; }
.pt-12 { padding-top: 3rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-4 { padding-bottom: 1rem; }

/* --- Spacing (children) --- */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }

/* --- Width --- */
.w-full { width: 100%; }
.w-2 { width: 0.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-16 { width: 4rem; }
.w-64 { width: 16rem; }
.w-screen { width: 100vw; }
.min-w-0 { min-width: 0; }
.min-w-120 { min-width: 120px; }
.min-w-200 { min-width: 200px; }
.w-220 { width: 220px; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-80pct { max-width: 80%; }
.max-w-440 { max-width: 440px; }

/* --- Height --- */
.h-full { height: 100%; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }

/* --- Typography --- */
.text-9px { font-size: 9px; }
.text-10px { font-size: 10px; }
.text-11px { font-size: 11px; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-0_25em { letter-spacing: 0.25em; }
.select-none { user-select: none; }
.line-height-1_2 { line-height: 1.2; }

/* --- Text Colors --- */
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-white { color: #fff; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-blue-500-80 { color: rgba(59, 130, 246, 0.8); }
.text-blue-700 { color: #1d4ed8; }
.text-blue-900 { color: #1e3a8a; }
.text-purple-700 { color: #7e22ce; }
.text-amber-700 { color: #b45309; }

/* Gerente custom text colors */
.text-main-dark { color: #4A3B32; }
.text-muted { color: #A3958D; }
.text-warm { color: #6E5D53; }
.text-warm-light { color: #8A7A71; }
.text-gold { color: #C5A059; }
.text-rose { color: #E8A090; }
.text-sage { color: #A8C5A0; }
.text-rose-dark { color: #D48A7A; }
.text-sage-dark { color: #5A7A5E; }
.text-green-deep { color: #2D4A30; }

/* --- Background Colors --- */
.bg-transparent { background-color: transparent; }
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-purple-100 { background-color: #ede9fe; }
.bg-amber-100 { background-color: #fef3c7; }

/* Gerente custom bg colors */
.bg-white-70 { background-color: rgba(255, 255, 255, 0.7); }
.bg-white-40 { background-color: rgba(255, 255, 255, 0.4); }
.bg-white-50 { background-color: rgba(255, 255, 255, 0.5); }
.bg-white-30 { background-color: rgba(255, 255, 255, 0.3); }
.bg-white-90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-white-5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white-10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white-20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-sage { background-color: #A8C5A0; }
.bg-sage-10 { background-color: rgba(168, 197, 160, 0.1); }
.bg-sage-20 { background-color: rgba(168, 197, 160, 0.2); }
.bg-sage-30 { background-color: rgba(168, 197, 160, 0.3); }
.bg-rose-20 { background-color: rgba(232, 160, 144, 0.2); }
.bg-rose-15 { background-color: rgba(232, 160, 144, 0.15); }
.bg-rose-30 { background-color: rgba(232, 160, 144, 0.3); }
.bg-rose { background-color: #E8A090; }
.bg-gold { background-color: #C5A059; }
.bg-gold-15 { background-color: rgba(197, 160, 89, 0.15); }
.bg-gold-20 { background-color: rgba(197, 160, 89, 0.2); }
.bg-gold-30 { background-color: rgba(197, 160, 89, 0.3); }
.bg-gold-40 { background-color: rgba(197, 160, 89, 0.4); }
.bg-cream { background-color: #FFF9F0; }
.bg-mint { background-color: #EBF5EE; }
.bg-lavender { background-color: #F0F4FD; }

/* --- Borders --- */
.border { border: 1px solid; }
.border-2 { border: 2px solid; }
.border-b { border-bottom: 1px solid; }
.border-t { border-top: 1px solid; }
.border-r { border-right: 1px solid; }
.border-dashed { border-style: dashed; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-200-50 { border-color: rgba(229, 231, 235, 0.5); }
.border-blue-200-60 { border-color: rgba(147, 197, 253, 0.6); }
.placeholder-muted::placeholder { color: #A3958D; }

/* Gerente custom borders */
.border-gold-15 { border-color: rgba(197, 160, 89, 0.15); }
.border-gold-10 { border-color: rgba(197, 160, 89, 0.1); }
.border-gold-20 { border-color: rgba(197, 160, 89, 0.2); }
.border-rose-30 { border-color: rgba(232, 160, 144, 0.3); }
.border-sage-30 { border-color: rgba(168, 197, 160, 0.3); }
.border-gold-30 { border-color: rgba(197, 160, 89, 0.3); }
.border-gold-40 { border-color: rgba(197, 160, 89, 0.4); }

/* --- Border Radius --- */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 999px; }
.rounded-tl-sm { border-top-left-radius: 0.125rem; }
.rounded-tr-sm { border-top-right-radius: 0.125rem; }
.rounded-24 { border-radius: 24px; }

/* --- Overflow --- */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }

/* --- Position --- */
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-4 { top: 1rem; }
.top-6 { top: 1.5rem; }
.right-6 { right: 1.5rem; }
.bottom-6 { bottom: 1.5rem; }

/* --- Z-index --- */
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* --- Transition --- */
.transition-all { transition: all 0.15s ease; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.duration-300 { transition-duration: 300ms; }

/* --- Shadow --- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-2xs { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }

/* --- Opacity --- */
.opacity-0 { opacity: 0; }
.opacity-70 { opacity: 0.7; }
.opacity-100 { opacity: 1; }

/* --- Transform --- */
.transform { transform: translateX(0) translateY(0); }
.translate-y-0 { transform: translateY(0); }
.translate-y-20 { transform: translateY(5rem); }

/* --- Cursor --- */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* --- Pointer Events --- */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* --- Resize --- */
.resize-vertical { resize: vertical; }

/* --- Hover states --- */
.hover-bg-gray-50:hover { background-color: #f9fafb; }
.hover-bg-gray-100:hover { background-color: #f3f4f6; }
.hover-bg-white:hover { background-color: #fff; }
.hover-bg-white-50:hover { background-color: rgba(255, 255, 255, 0.5); }
.hover-underline:hover { text-decoration: underline; }
.hover-bg-sage-dark:hover { background-color: #97B48F; }
.hover-bg-cream-light:hover { background-color: #FDF2F0; }
.hover-bg-gold-dark:hover { background-color: #B8944F; }
.hover-text-red-600:hover { color: #dc2626; }

/* --- Focus states --- */
.focus-outline-none:focus { outline: none; }
.focus-border-sage:focus { border-color: #A8C5A0; }
.focus-ring-sage:focus { box-shadow: 0 0 0 1px #A8C5A0; }

/* --- Responsive --- */
@media (min-width: 640px) {
  .sm-flex-row { flex-direction: row; }
  .sm-items-center { align-items: center; }
}
@media (min-width: 768px) {
  .md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-p-8 { padding: 2rem; }
}
