/* Mobil Uyumluluk İyileştirmeleri */

/* Touch-friendly butonlar */
@media (max-width: 768px) {
    .btn {
        min-height: 44px; /* iOS touch target minimum */
        padding: 10px 15px;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 8px 12px;
    }
    
    /* Tablo responsive iyileştirmeleri */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Form elemanları */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* iOS zoom önleme */
    }
    
    /* Modal iyileştirmeleri */
    .modal-dialog {
        margin: 10px;
    }
    
    /* Sidebar mobil görünümü */
    .sidebar {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 56px);
        transition: left 0.3s;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    /* Navbar mobil */
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Text sizing */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Spacing */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
}

/* Tablet görünümü */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
}

/* Touch gesture iyileştirmeleri */
@media (hover: none) and (pointer: coarse) {
    /* Touch cihazlar için */
    a, button {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    .table-hover tbody tr {
        cursor: pointer;
    }
    
    /* Swipe için alan */
    .swipeable {
        touch-action: pan-y;
    }
}

/* Landscape mod */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar {
        padding: 0.25rem 1rem;
    }
    
    .sidebar {
        width: 60%;
    }
}

