/* Media Library Pro - Styles supplémentaires pour les classes Tailwind non compilées par Filament */

/* Ces styles complètent les classes Filament pré-compilées (fi-*) */

/* ============================================
   CLASSES CRITIQUES POUR LA MODALE
   ============================================ */

/* Backdrop et overlay */
.bg-black\/70 {
    background-color: rgba(0, 0, 0, 0.7);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Transform et scale */
.scale-\[0\.97\] {
    transform: scale(0.97);
}

.scale-100 {
    transform: scale(1);
}

.scale-\[1\.02\] {
    transform: scale(1.02);
}

/* Borders */
.border-2 {
    border-width: 2px;
}

.border-4 {
    border-width: 4px;
}

.border-dashed {
    border-style: dashed;
}

/* Border radius */
.rounded-2xl {
    border-radius: 1rem;
}

/* Padding spécifiques */
.p-12 {
    padding: 3rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Spacing */
.space-y-5 > * + * {
    margin-top: 1.25rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

/* Typography */
.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.font-bold {
    font-weight: 700;
}

/* Primary colors */
.bg-primary-50 {
    background-color: rgb(255 247 237);
}

.bg-primary-100 {
    background-color: rgb(254 243 199);
}

.bg-primary-200 {
    background-color: rgb(254 243 199);
}

.text-primary-400 {
    color: rgb(251 191 36);
}

.text-primary-500 {
    color: rgb(245 158 11);
}

.text-primary-600 {
    color: rgb(217 119 6);
}

.dark .bg-primary-400 {
    color: rgb(251 191 36);
}

.dark .bg-primary-800 {
    background-color: rgb(154 52 18);
}

.dark .bg-primary-900\/30 {
    background-color: rgb(120 53 15 / 0.3);
}

.dark .text-primary-400 {
    color: rgb(251 191 36);
}

/* Ring */
.ring-4 {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-primary-500\/20 {
    --tw-ring-color: rgb(245 158 11 / 0.2);
}

/* Margin spécifique */
.ml-13 {
    margin-left: 3.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

/* Blur */
.blur-2xl {
    filter: blur(40px);
    -webkit-filter: blur(40px);
}

/* Text decoration */
.decoration-2 {
    text-decoration-thickness: 2px;
}

.underline-offset-4 {
    text-underline-offset: 0.5rem;
}

/* Opacity */
.opacity-30 {
    opacity: 0.3;
}

.opacity-50 {
    opacity: 0.5;
}

.group-hover\:opacity-50:hover {
    opacity: 0.5;
}

/* Gradients */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-gray-50 {
    --tw-gradient-from: rgb(249 250 251);
    --tw-gradient-to: rgb(249 250 251 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-primary-50 {
    --tw-gradient-from: rgb(255 247 237);
    --tw-gradient-to: rgb(255 247 237 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-white {
    --tw-gradient-to: rgb(255 255 255);
}

.dark .from-gray-800 {
    --tw-gradient-from: rgb(31 41 55);
    --tw-gradient-to: rgb(31 41 55 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.dark .from-primary-900\/10 {
    --tw-gradient-from: rgb(120 53 15 / 0.1);
    --tw-gradient-to: rgb(120 53 15 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.dark .to-gray-800 {
    --tw-gradient-to: rgb(31 41 55);
}

.dark .to-gray-900 {
    --tw-gradient-to: rgb(17 24 39);
}

/* Hover states */
.hover\:border-primary-400:hover {
    border-color: rgb(251 191 36);
}

.hover\:bg-gradient-to-br:hover {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.hover\:from-primary-50:hover {
    --tw-gradient-from: rgb(255 247 237);
    --tw-gradient-to: rgb(255 247 237 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.hover\:to-white:hover {
    --tw-gradient-to: rgb(255 255 255);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.dark .hover\:from-primary-900\/10:hover {
    --tw-gradient-from: rgb(120 53 15 / 0.1);
    --tw-gradient-to: rgb(120 53 15 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.dark .hover\:to-gray-800:hover {
    --tw-gradient-to: rgb(31 41 55);
}

/* Sizing */
.h-10 {
    height: 2.5rem;
}

.w-10 {
    width: 2.5rem;
}

.h-16 {
    height: 4rem;
}

.w-16 {
    width: 4rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

/* Z-index */
.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* Pointer events */
.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

/* Focus */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-primary-500:focus {
    --tw-ring-color: rgb(245 158 11);
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-100 {
    transition-duration: 100ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Transform */
.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Shadow */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Flex utilities */
.flex-1 {
    flex: 1 1 0%;
}

.flex-col {
    flex-direction: column;
}

.items-start {
    align-items: flex-start;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.min-h-0 {
    min-height: 0;
}

.max-h-\[90vh\] {
    max-height: 90vh;
}

/* Text colors dark mode */
.dark .text-gray-200 {
    color: rgb(229 231 235);
}

.dark .text-gray-300 {
    color: rgb(209 213 219);
}

.dark .text-gray-400 {
    color: rgb(156 163 175);
}

.dark .text-gray-600 {
    color: rgb(75 85 99);
}

.dark .text-white {
    color: rgb(255 255 255);
}

/* Background colors dark mode */
.dark .bg-gray-700 {
    background-color: rgb(55 65 81);
}

.dark .bg-gray-800 {
    background-color: rgb(31 41 55);
}

.dark .bg-gray-900 {
    background-color: rgb(17 24 39);
}

/* Border colors dark mode */
.dark .border-gray-600 {
    border-color: rgb(75 85 99);
}

.dark .border-gray-700 {
    border-color: rgb(55 65 81);
}

/* Hover dark mode */
.dark .hover\:bg-gray-700:hover {
    background-color: rgb(55 65 81);
}

.dark .hover\:text-gray-200:hover {
    color: rgb(229 231 235);
}

/* ============================================
   CLASSES POUR ERREURS ET VALIDATION
   ============================================ */

.bg-red-50 {
    background-color: rgb(254 242 242);
}

.bg-red-500 {
    background-color: rgb(239 68 68);
}

.border-red-200 {
    border-color: rgb(254 202 202);
}

.border-red-500 {
    border-color: rgb(239 68 68);
}

.border-red-800 {
    border-color: rgb(153 27 27);
}

.text-red-400 {
    color: rgb(248 113 113);
}

.text-red-600 {
    color: rgb(220 38 38);
}

.text-red-700 {
    color: rgb(185 28 28);
}

.dark .bg-red-900\/20 {
    background-color: rgb(127 29 29 / 0.2);
}

.dark .border-red-800 {
    border-color: rgb(153 27 27);
}

.dark .text-red-400 {
    color: rgb(248 113 113);
}

.dark .text-red-300 {
    color: rgb(252 165 165);
}

.hover\:text-red-700:hover {
    color: rgb(185 28 28);
}

.hover\:bg-red-50:hover {
    background-color: rgb(254 242 242);
}

.hover\:bg-red-600:hover {
    background-color: rgb(220 38 38);
}

.dark .hover\:text-red-300:hover {
    color: rgb(252 165 165);
}

.dark .hover\:bg-red-900\/20:hover {
    background-color: rgb(127 29 29 / 0.2);
}

.ring-red-500\/50 {
    --tw-ring-color: rgb(239 68 68 / 0.5);
}

/* ============================================
   CLASSES POUR SUCCÈS ET VALIDATION OK
   ============================================ */

.bg-green-100 {
    background-color: rgb(220 252 231);
}

.text-green-400 {
    color: rgb(74 222 128);
}

.text-green-700 {
    color: rgb(21 128 61);
}

.dark .bg-green-900\/30 {
    background-color: rgb(20 83 45 / 0.3);
}

.dark .text-green-400 {
    color: rgb(74 222 128);
}

/* ============================================
   CLASSES POUR PREVIEW ET GRID
   ============================================ */

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.max-h-56 {
    max-height: 14rem;
}

.overflow-y-auto {
    overflow-y: auto;
}

.rounded-full {
    border-radius: 9999px;
}

.border-t-2 {
    border-top-width: 2px;
}

/* ============================================
   PADDING ET MARGIN SUPPLÉMENTAIRES
   ============================================ */

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.p-1\.5 {
    padding: 0.375rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.-top-2 {
    top: -0.5rem;
}

.-right-2 {
    right: -0.5rem;
}

/* ============================================
   OPACITY
   ============================================ */

.opacity-0 {
    opacity: 0;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-75 {
    opacity: 0.75;
}

.group-hover\:opacity-100:hover {
    opacity: 1;
}

/* ============================================
   SIZING SUPPLÉMENTAIRE
   ============================================ */

.h-8 {
    height: 2rem;
}

.w-8 {
    width: 2rem;
}

.h-4 {
    height: 1rem;
}

.w-4 {
    width: 1rem;
}

/* ============================================
   GRADIENTS SUPPLÉMENTAIRES
   ============================================ */

.from-gray-100 {
    --tw-gradient-from: rgb(243 244 246);
    --tw-gradient-to: rgb(243 244 246 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-gray-200 {
    --tw-gradient-to: rgb(229 231 235);
}

.dark .from-gray-700 {
    --tw-gradient-from: rgb(55 65 81);
    --tw-gradient-to: rgb(55 65 81 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.dark .to-gray-800 {
    --tw-gradient-to: rgb(31 41 55);
}

.dark .from-gray-900\/50 {
    --tw-gradient-from: rgb(17 24 39 / 0.5);
    --tw-gradient-to: rgb(17 24 39 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.dark .to-gray-800 {
    --tw-gradient-to: rgb(31 41 55);
}

/* ============================================
   HOVER STATES SUPPLÉMENTAIRES
   ============================================ */

.group-hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.group-hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ============================================
   KBD STYLES
   ============================================ */

kbd {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: rgb(229 231 235);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-weight: 600;
}

.dark kbd {
    background-color: rgb(55 65 81);
    color: rgb(255 255 255);
}

/* ============================================
   COMPOSANTS SPÉCIFIQUES
   ============================================ */

.file-preview-item {
    transition: all 0.2s ease-in-out;
}

.file-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.btn-hover-lift {
    transition: all 0.2s ease-in-out;
}

.btn-hover-lift:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.drag-zone-active {
    border-color: rgb(245 158 11) !important;
    background-color: rgb(255 247 237) !important;
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgb(245 158 11 / 0.2), 0 8px 10px -6px rgb(245 158 11 / 0.1);
    border-width: 3px !important;
}

.dark .drag-zone-active {
    background-color: rgb(120 53 15 / 0.3) !important;
    border-color: rgb(251 191 36) !important;
}

/* Zone de drag and drop améliorée */
.min-h-\[280px\] {
    min-height: 280px;
}

.bg-gray-50\/50 {
    background-color: rgb(249 250 251 / 0.5);
}

.dark .bg-gray-800\/30 {
    background-color: rgb(31 41 55 / 0.3);
}

.hover\:text-primary-700:hover {
    color: rgb(180 83 9);
}

.dark .hover\:text-primary-300:hover {
    color: rgb(253 230 138);
}

.bg-white {
    background-color: rgb(255 255 255);
}

.dark .bg-gray-700\/70 {
    background-color: rgb(55 65 81 / 0.7);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.dark .text-gray-500 {
    color: rgb(107 114 128);
}

/* ============================================
   UTILITAIRES DE BASE
   ============================================ */

.gap-4 {
    gap: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Flexbox */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* Spacing */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

/* Typography */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-center {
    text-align: center;
}

/* Colors - Light mode */
.text-gray-500 {
    color: rgb(107 114 128);
}

.text-gray-600 {
    color: rgb(75 85 99);
}

.text-gray-700 {
    color: rgb(55 65 81);
}

.text-gray-900 {
    color: rgb(17 24 39);
}

.text-gray-400 {
    color: rgb(156 163 175);
}

.bg-gray-100 {
    background-color: rgb(243 244 246);
}

.bg-gray-800 {
    background-color: rgb(31 41 55);
}

.bg-white {
    background-color: rgb(255 255 255);
}

.bg-yellow-100 {
    background-color: rgb(254 249 195);
}

/* Colors - Dark mode */
.dark\:text-gray-300 {
    color: rgb(209 213 219);
}

.dark\:text-gray-400 {
    color: rgb(156 163 175);
}

.dark\:text-white {
    color: rgb(255 255 255);
}

.dark\:bg-gray-800 {
    background-color: rgb(31 41 55);
}

.dark\:bg-gray-900 {
    background-color: rgb(17 24 39);
}

.dark\:bg-yellow-900\/20 {
    background-color: rgb(113 63 18 / 0.2);
}

.dark\:border-gray-700 {
    border-color: rgb(55 65 81);
}

.dark\:ring-white\/10 {
    --tw-ring-color: rgb(255 255 255 / 0.1);
}

/* Borders */
.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-gray-200 {
    border-color: rgb(229 231 235);
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Shadows */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* Ring */
.ring-1 {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-gray-950\/5 {
    --tw-ring-color: rgb(3 7 18 / 0.05);
}

.ring-inset {
    --tw-ring-inset: inset;
}

/* Aspect ratio */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

/* Position */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-2 {
    top: 0.5rem;
}

.left-2 {
    left: 0.5rem;
}

.z-10 {
    z-index: 10;
}

/* Sizing */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.w-32 {
    width: 8rem;
}

.h-32 {
    height: 8rem;
}

/* Object fit */
.object-cover {
    object-fit: cover;
}

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

/* Transitions */
.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover\:opacity-90:hover {
    opacity: 0.9;
}

/* Loading */
.loading-lazy {
    loading: lazy;
}

/* Responsive */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .sm\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .sm\:p-6 {
        padding: 1.5rem;
    }
    
    .sm\:p-0 {
        padding: 0;
    }
    
    .sm\:my-8 {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .sm\:w-full {
        width: 100%;
    }
    
    .sm\:max-w-lg {
        max-width: 32rem;
    }
    
    .sm\:text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
    
    .sm\:items-center {
        align-items: center;
    }
}

/* Modal styles */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Absolute positioning */
.absolute {
    position: absolute;
}

.right-0 {
    right: 0;
}

.top-0 {
    top: 0;
}

.pr-4 {
    padding-right: 1rem;
}

.pt-4 {
    padding-top: 1rem;
}

/* Button styles for modal close */
.rounded-md {
    border-radius: 0.375rem;
}

.text-gray-400 {
    color: rgb(156 163 175);
}

.hover\:text-gray-500:hover {
    color: rgb(107 114 128);
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-primary-500:focus {
    --tw-ring-color: rgb(245 158 11);
}

.focus\:ring-offset-2:focus {
    --tw-ring-offset-width: 2px;
}

.dark\:focus\:ring-offset-gray-800:focus {
    --tw-ring-offset-color: rgb(31 41 55);
}

.h-6 {
    height: 1.5rem;
}

.w-6 {
    width: 1.5rem;
}

.h-7 {
    height: 1.75rem;
}

.w-7 {
    width: 1.75rem;
}

.h-5 {
    height: 1.25rem;
}

.w-5 {
    width: 1.25rem;
}

/* Modal close button improvements */
.inline-flex {
    display: inline-flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.p-2 {
    padding: 0.5rem;
}

.hover\:bg-gray-100:hover {
    background-color: rgb(243 244 246);
}

.dark\:hover\:bg-gray-700:hover {
    background-color: rgb(55 65 81);
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.z-10 {
    z-index: 10;
}

/* Modal backdrop and container */
.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.overflow-y-auto {
    overflow-y: auto;
}

.bg-gray-500 {
    background-color: rgb(107 114 128);
}

.bg-opacity-75 {
    background-color: rgba(107, 114, 128, 0.75) !important;
}

.flex {
    display: flex;
}

.min-h-full {
    min-height: 100%;
}

.items-end {
    align-items: flex-end;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.p-4 {
    padding: 1rem;
}

.text-center {
    text-align: center;
}

@media (min-width: 640px) {
    .sm\:items-center {
        align-items: center;
    }
    
    .sm\:p-0 {
        padding: 0;
    }
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.pt-5 {
    padding-top: 1.25rem;
}

@media (min-width: 640px) {
    .sm\:my-8 {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .sm\:w-full {
        width: 100%;
    }
    
    .sm\:max-w-lg {
        max-width: 32rem;
    }
    
    .sm\:p-6 {
        padding: 1.5rem;
    }
}

/* Modal header improvements */
.border-b {
    border-bottom-width: 1px;
}

.border-gray-200 {
    border-color: rgb(229 231 235);
}

.dark\:border-gray-700 {
    border-color: rgb(55 65 81);
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

/* File input styling */
.file\:mr-4::file-selector-button {
    margin-right: 1rem;
}

.file\:py-2::file-selector-button {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.file\:px-4::file-selector-button {
    padding-left: 1rem;
    padding-right: 1rem;
}

.file\:rounded-lg::file-selector-button {
    border-radius: 0.5rem;
}

.file\:border-0::file-selector-button {
    border-width: 0;
}

.file\:text-sm::file-selector-button {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.file\:font-semibold::file-selector-button {
    font-weight: 600;
}

.file\:bg-primary-50::file-selector-button {
    background-color: rgb(255 247 237);
}

.file\:text-primary-700::file-selector-button {
    color: rgb(180 83 9);
}

.hover\:file\:bg-primary-100:hover::file-selector-button {
    background-color: rgb(254 243 199);
}

.dark\:file\:bg-primary-900::file-selector-button {
    background-color: rgb(120 53 15);
}

.dark\:file\:text-primary-200::file-selector-button {
    color: rgb(253 230 138);
}

.bg-gray-50 {
    background-color: rgb(249 250 251);
}

.dark\:bg-gray-900 {
    background-color: rgb(17 24 39);
}

.p-3 {
    padding: 0.75rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Media Picker Modal specific styles */
.max-h-\[70vh\] {
    max-height: 70vh;
}

.max-h-96 {
    max-height: 24rem;
}

.min-h-screen {
    min-height: 100vh;
}

.align-bottom {
    vertical-align: bottom;
}

.sm\:align-middle {
    vertical-align: middle;
}

.sm\:max-w-6xl {
    max-width: 72rem;
}

.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.inline-block {
    display: inline-block;
}

.text-left {
    text-align: left;
}

/* Alpine.js transitions */
[x-cloak] {
    display: none !important;
}

/* Filament component styles */
.fi-input {
    display: block;
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid rgb(209 213 219);
    background-color: rgb(255 255 255);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(17 24 39);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.fi-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: rgb(245 158 11);
    box-shadow: 0 0 0 3px rgb(245 158 11 / 0.1);
}

.dark .fi-input {
    background-color: rgb(31 41 55);
    border-color: rgb(55 65 81);
    color: rgb(255 255 255);
}

.dark .fi-input:focus {
    border-color: rgb(245 158 11);
    box-shadow: 0 0 0 3px rgb(245 158 11 / 0.1);
}

.fi-input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(55 65 81);
    margin-bottom: 0.25rem;
}

.dark .fi-input-label {
    color: rgb(209 213 219);
}

/* Button styles */
.fi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    cursor: pointer;
    border: 1px solid transparent;
}

.fi-btn-color-gray {
    background-color: rgb(249 250 251);
    color: rgb(55 65 81);
    border-color: rgb(209 213 219);
}

.fi-btn-color-gray:hover {
    background-color: rgb(243 244 246);
}

.fi-btn-size-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.fi-btn-style-outline {
    background-color: transparent;
    border: 1px solid rgb(209 213 219);
    color: rgb(55 65 81);
}

.fi-btn-style-outline:hover {
    background-color: rgb(249 250 251);
}

.dark .fi-btn-color-gray {
    background-color: rgb(31 41 55);
    color: rgb(209 213 219);
    border-color: rgb(55 65 81);
}

.dark .fi-btn-color-gray:hover {
    background-color: rgb(55 65 81);
}

.dark .fi-btn-style-outline {
    background-color: transparent;
    border-color: rgb(55 65 81);
    color: rgb(209 213 219);
}

.dark .fi-btn-style-outline:hover {
    background-color: rgb(31 41 55);
}

/* Ring utilities */
.ring-1 {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-inset {
    --tw-ring-inset: inset;
}

.ring-gray-950\/10 {
    --tw-ring-color: rgb(3 7 18 / 0.1);
}

.ring-white\/20 {
    --tw-ring-color: rgb(255 255 255 / 0.2);
}

/* Additional spacing */
.pb-20 {
    padding-bottom: 5rem;
}

.sm\:block {
    display: block;
}

.text-center {
    text-align: center;
}

/* Ensure modal content is properly styled */
.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Section styles for filters */
.fi-section {
    background-color: rgb(255 255 255);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgb(229 231 235);
}
.dark .fi-section {
    background-color: rgb(31 41 55);
    border-color: rgb(55 65 81);
}

/* Additional utilities for modal */
.z-50 {
    z-index: 50;
}

.text-gray-700 {
    color: rgb(55 65 81);
}

.dark .text-gray-300 {
    color: rgb(209 213 219);
}

.dark .text-gray-100 {
    color: rgb(243 244 246);
}

.text-gray-900 {
    color: rgb(17 24 39);
}

.dark .text-gray-900 {
    color: rgb(243 244 246);
}

.bg-white {
    background-color: rgb(255 255 255);
}

.dark .bg-gray-800 {
    background-color: rgb(31 41 55);
}

.border-gray-200 {
    border-color: rgb(229 231 235);
}

.dark .border-gray-700 {
    border-color: rgb(55 65 81);
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* Modal backdrop and background fixes */
.fixed.inset-0[style*='background-color'] {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
}

/* Dark mode for modal background */
@media (prefers-color-scheme: dark) {
    .dark [style*='background-color: rgb(255, 255, 255)'] {
        background-color: rgb(31, 41, 55) !important;
    }
}

.dark [style*='background-color: rgb(255, 255, 255)'] {
    background-color: rgb(31, 41, 55) !important;
}

/* Ensure proper z-index stacking */
[style*='z-index: 2'] {
    z-index: 2 !important;
}

[style*='z-index: 1'] {
    z-index: 1 !important;
}

/* Modal background fixes */
.modal-content-bg {
    background-color: rgb(255, 255, 255);
}

.dark .modal-content-bg {
    background-color: rgb(31, 41, 55);
}

/* Ensure backdrop is properly styled */
.fixed.inset-0[style*='background-color'] {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
}

/* Modal content z-index */
[style*='z-index: 2'] {
    z-index: 2 !important;
    position: relative;
}

[style*='z-index: 1'] {
    z-index: 1 !important;
    position: relative;
}
