/**
 * MedMentor Design System - Tailwind Bridge
 * 
 * TEMPORARY FILE - For gradual migration only
 * 
 * This file contains Tailwind utility class duplicates extracted from design-tokens.css.
 * These classes use !important to override Tailwind CDN defaults during migration.
 * 
 * Created: 7 Octombrie 2025
 * Status: TEMPORARY - Will be removed after Phase 5
 * 
 * MIGRATION PLAN:
 * 1. Phase 2: Extend Tailwind config to generate these natively
 * 2. Phase 3-4: Test that Tailwind generates needed utilities
 * 3. Phase 5: Remove this bridge file completely
 * 
 * DO NOT ADD NEW CLASSES HERE - Use Tailwind config instead
 */

/* ==================== DASHBOARD UTILITIES (TAILWIND EXTENDED) ==================== */

/* Flexbox & Grid - High Specificity */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }
.hidden { display: none !important; }
.block { display: block !important; }
.inline { display: inline !important; }
.inline-block { display: inline-block !important; }

/* Flex Direction */
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }

/* Flex Wrap */
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }

/* Flex Alignment */
.items-start { align-items: flex-start !important; }
.items-center { align-items: center !important; }
.items-end { align-items: flex-end !important; }
.items-stretch { align-items: stretch !important; }
.justify-start { justify-content: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-around { justify-content: space-around !important; }

/* Gap Utilities */
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }

/* Grid Columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* Spacing - Padding */
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }

.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }

.pt-3 { padding-top: 0.75rem !important; }
.pt-6 { padding-top: 1.5rem !important; }
.pb-8 { padding-bottom: 2rem !important; }

/* Spacing - Margin */
.m-0 { margin: 0 !important; }
.m-auto { margin: auto !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 0.5rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }

.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 0.75rem !important; }
.ml-4 { margin-left: 1rem !important; }

/* Spacing Utilities */
.space-y-3 > * + * { margin-top: 0.75rem !important; }

/* Width */
.w-4 { width: 1rem !important; }
.w-6 { width: 1.5rem !important; }
.w-8 { width: 2rem !important; }
.w-10 { width: 2.5rem !important; }
.w-12 { width: 3rem !important; }
.w-14 { width: 3.5rem !important; }
.w-16 { width: 4rem !important; }
.w-24 { width: 6rem !important; }
.w-full { width: 100% !important; }

/* Height */
.h-2 { height: 0.5rem !important; }
.h-3 { height: 0.75rem !important; }
.h-4 { height: 1rem !important; }
.h-6 { height: 1.5rem !important; }
.h-8 { height: 2rem !important; }
.h-10 { height: 2.5rem !important; }
.h-12 { height: 3rem !important; }
.h-14 { height: 3.5rem !important; }
.h-16 { height: 4rem !important; }
.h-full { height: 100% !important; }

/* Max Height */
.max-h-96 { max-height: 24rem !important; }

/* Min Width */
.min-w-0 { min-width: 0 !important; }

/* Background Colors - Gray Palette */
.bg-white { background-color: #ffffff !important; }
.bg-gray-50 { background-color: var(--mm-gray-50) !important; }
.bg-gray-100 { background-color: var(--mm-gray-100) !important; }
.bg-gray-200 { background-color: var(--mm-gray-200) !important; }

/* Background Opacity */
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2) !important; }

/* Text Colors */
.text-white { color: #ffffff !important; }
.text-gray-400 { color: var(--mm-gray-400) !important; }
.text-gray-500 { color: var(--mm-gray-500) !important; }
.text-gray-600 { color: var(--mm-gray-600) !important; }
.text-gray-700 { color: var(--mm-gray-700) !important; }
.text-gray-900 { color: var(--mm-gray-900) !important; }

/* Color Specific Backgrounds */
.bg-blue-100 { background-color: #dbeafe !important; }
.bg-blue-500 { background-color: #3b82f6 !important; }
.bg-green-100 { background-color: #d1fae5 !important; }
.bg-green-500 { background-color: #10b981 !important; }
.bg-yellow-100 { background-color: #fef3c7 !important; }
.bg-purple-100 { background-color: #f3e8ff !important; }

/* Color Specific Text */
.text-blue-600 { color: #2563eb !important; }
.text-green-600 { color: #059669 !important; }
.text-green-700 { color: #047857 !important; }
.text-yellow-600 { color: #d97706 !important; }
.text-yellow-700 { color: #b45309 !important; }
.text-purple-600 { color: #9333ea !important; }
.text-purple-700 { color: #7e22ce !important; }

/* Gradient Backgrounds */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)) !important; }
.from-green-500 { --tw-gradient-from: #10b981 !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(16, 185, 129, 0)) !important; }
.to-emerald-600 { --tw-gradient-to: #059669 !important; }
.from-purple-500 { --tw-gradient-from: #a855f7 !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(168, 85, 247, 0)) !important; }
.to-pink-600 { --tw-gradient-to: #db2777 !important; }

/* Border */
.border { border-width: 1px !important; }
.border-t { border-top-width: 1px !important; }
.border-2 { border-width: 2px !important; }
.border-gray-100 { border-color: var(--mm-gray-100) !important; }
.border-gray-200 { border-color: var(--mm-gray-200) !important; }
.border-gray-300 { border-color: var(--mm-gray-300) !important; }
.border-dashed { border-style: dashed !important; }

/* Border Radius */
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-3xl { border-radius: 1.5rem !important; }
.rounded-full { border-radius: 9999px !important; }

/* Shadow */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important; }

/* Ring */
.ring-1 { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05) !important; }

/* Typography - Font Size */
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }

/* Typography - Font Weight */
.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-black { font-weight: 900 !important; }

/* Text Alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Text Truncate */
.truncate { 
    overflow: hidden !important; 
    text-overflow: ellipsis !important; 
    white-space: nowrap !important; 
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Text Transform */
.uppercase { text-transform: uppercase !important; }

/* Letter Spacing */
.tracking-wide { letter-spacing: 0.025em !important; }

/* Opacity */
.opacity-75 { opacity: 0.75 !important; }
.opacity-90 { opacity: 0.9 !important; }

/* Position */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.inset-0 { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; }

/* Z-Index */
.z-10 { z-index: 10 !important; }

/* Overflow */
.overflow-hidden { overflow: hidden !important; }
.overflow-y-auto { overflow-y: auto !important; }

/* Object Fit */
.object-cover { object-fit: cover !important; }
.object-contain { object-fit: contain !important; }

/* Flex Shrink/Grow */
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-1 { flex: 1 1 0% !important; }

/* Cursor */
.cursor-pointer { cursor: pointer !important; }

/* Transitions */
.transition-all { transition: all var(--mm-transition-base) !important; }
.transition-colors { transition: color var(--mm-transition-base), background-color var(--mm-transition-base), border-color var(--mm-transition-base) !important; }
.transition-transform { transition: transform var(--mm-transition-base) !important; }
.transition-shadow { transition: box-shadow var(--mm-transition-base) !important; }
.duration-200 { transition-duration: 200ms !important; }
.duration-300 { transition-duration: 300ms !important; }
.duration-500 { transition-duration: 500ms !important; }
.duration-1000 { transition-duration: 1000ms !important; }

/* Transform */
.-translate-y-0\.5 { transform: translateY(-0.125rem) !important; }

/* Hover States */
.hover\:bg-white:hover { background-color: #ffffff !important; }
.hover\:bg-gray-50:hover { background-color: var(--mm-gray-50) !important; }
.hover\:bg-gray-100:hover { background-color: var(--mm-gray-100) !important; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; }
.hover\:border-gray-300:hover { border-color: var(--mm-gray-300) !important; }
.hover\:text-blue-600:hover { color: #2563eb !important; }
.hover\:text-primary:hover { color: var(--mm-primary) !important; }
.hover\:scale-110:hover { transform: scale(1.1) !important; }

/* Group Hover States */
.group:hover .group-hover\:scale-110 { transform: scale(1.1) !important; }
.group:hover .group-hover\:text-blue-600 { color: #2563eb !important; }
.group:hover .group-hover\:text-primary { color: var(--mm-primary) !important; }

/* Animate */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive Grid - Medium Screens (768px+) */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Responsive Grid - Large Screens (1024px+) */
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .lg\:flex-row { flex-direction: row !important; }
    .lg\:items-center { align-items: center !important; }
    .lg\:justify-between { justify-content: space-between !important; }
    .lg\:ml-6 { margin-left: 1.5rem !important; }
    .lg\:mx-4 { margin-left: 1rem !important; margin-right: 1rem !important; }
    .lg\:w-24 { width: 6rem !important; }
}

/* Filter Effects */
.filter { filter: none !important; }


