/* Mobile and Responsive Enhancements */

/* Mobile Menu Toggle Button */
.mobile-menu-button {
    @apply md:hidden inline-flex items-center justify-center p-2 rounded-md text-white hover:bg-white hover:bg-opacity-10 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white;
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    /* Header adjustments */
    .header-content {
        @apply px-4;
    }
    
    /* Stats cards - stack on mobile */
    .stats-grid {
        @apply grid-cols-2 gap-3;
    }
    
    /* Charts responsive */
    .chart-container {
        @apply mb-4;
    }
    
    /* Tables responsive */
    .table-responsive {
        @apply overflow-x-auto;
    }
    
    /* Form elements */
    .form-input-mobile {
        @apply text-base; /* Prevent zoom on iOS */
    }
    
    /* Buttons */
    .btn-mobile {
        @apply px-3 py-2 text-sm;
    }
    
    /* Cards padding */
    .card-mobile {
        @apply p-4;
    }
}

@media (max-width: 640px) {
    /* Very small screens */
    .stats-grid {
        @apply grid-cols-1;
    }
    
    /* Text sizes */
    .text-responsive {
        @apply text-sm;
    }
    
    /* Hide some elements on very small screens */
    .hide-on-small {
        @apply hidden;
    }
}

/* Touch-friendly elements */
.touch-target {
    @apply min-h-[44px] min-w-[44px];
}

/* Improved form inputs for mobile */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
select, 
textarea {
    @apply text-base; /* Prevent zoom on iOS */
}

/* Loading states */
.loading {
    @apply opacity-50 pointer-events-none;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .print-break {
        page-break-before: always;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contrast-border {
        @apply border-2 border-black;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode preparations */
@media (prefers-color-scheme: dark) {
    .dark-mode-text {
        @apply text-gray-100;
    }
    
    .dark-mode-bg {
        @apply bg-gray-800;
    }
}