/**
 * Responsive Improvements
 * Mobile-first yaklaşım ve touch-friendly iyileştirmeler
 */

/* Mobile Menu Improvements */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    /* Touch-friendly buttons */
    .btn, button, a.btn {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 16px;
    }
    
    /* Table responsive */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Card padding reduction */
    .card-body {
        padding: 16px !important;
    }
    
    .card-header {
        padding: 12px 16px !important;
    }
    
    /* Form improvements */
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Spacing adjustments */
    .mb-24 {
        margin-bottom: 16px !important;
    }
    
    .gap-3 {
        gap: 12px !important;
    }
}

/* Tablet improvements */
@media (min-width: 768px) and (max-width: 991.98px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Small mobile */
@media (max-width: 575.98px) {
    /* Stack columns */
    .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Hide less important elements */
    .d-none-mobile {
        display: none !important;
    }
    
    /* Full width buttons */
    .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    /* Compact tables */
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 8px 4px;
    }
    
    /* Compact cards */
    .card {
        margin-bottom: 12px;
    }
    
    /* Navigation improvements */
    .navbar {
        padding: 8px 12px;
    }
    
    /* Dashboard spacing */
    .dashboard-main-body {
        padding: 0.375rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    a, button, .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .hover-text-primary:hover {
        color: inherit;
    }
    
    /* Better tap feedback */
    .btn:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid;
    }
    
    .btn {
        border: 2px solid;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .pagination,
    .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}
