/* Mobil uyumluluk için özel CSS */

/* Products sayfası için mobil responsive düzenlemeler */
@media (max-width: 768px) {
    .products-container {
        padding: 1rem 0 !important;
    }
    
    .content-card {
        padding: 1rem !important;
        border-radius: 15px !important;
        margin-bottom: 1rem !important;
    }
    
    .page-title {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    .form-section {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .form-title, .section-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .form-title::before, .section-title::before {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 576px) {
    .products-container {
        padding: 0.5rem 0 !important;
    }
    
    .content-card {
        padding: 0.75rem !important;
        border-radius: 10px !important;
    }
    
    .page-title {
        font-size: 1.5rem !important;
    }
    
    .form-section {
        padding: 0.75rem !important;
    }
}

/* Category sayfası için mobil responsive düzenlemeler */
@media (max-width: 768px) {
    .category-container {
        padding: 1rem 0 !important;
    }
    
    .category-item {
        padding: 0.75rem 1rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .category-item .d-flex {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

@media (max-width: 576px) {
    .category-container {
        padding: 0.5rem 0 !important;
    }
    
    .category-item {
        padding: 0.5rem 0.75rem !important;
    }
}

/* Mobilde tablo kartları */
@media (max-width: 768px) {
    .mobile-table-card {
        background: white;
        border-radius: 10px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border: 1px solid #e2e8f0;
    }
    
    .mobile-table-card .product-info {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .mobile-table-card .product-image {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .mobile-table-card .product-details {
        flex: 1;
    }
    
    .mobile-table-card .product-name {
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 0.25rem;
    }
    
    .mobile-table-card .product-category {
        background: #f7fafc;
        color: #4a5568;
        border-radius: 6px;
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
        display: inline-block;
        margin-bottom: 0.25rem;
    }
    
    .mobile-table-card .product-price {
        font-weight: 600;
        color: #2d3748;
        font-size: 1.1rem;
    }
    
    .mobile-table-card .product-description {
        color: #718096;
        font-size: 0.9rem;
        margin: 0.5rem 0;
        line-height: 1.4;
    }
    
    .mobile-table-card .product-actions {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .mobile-table-card .btn {
        flex: 1;
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Mobilde form düzenlemeleri */
@media (max-width: 576px) {
    .mobile-form-stack {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-form-stack .form-group {
        margin-bottom: 0;
    }
    
    .mobile-form-stack .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Mobilde input group düzenlemeleri */
    .mobile-input-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mobile-input-group .input-group {
        flex-direction: row;
    }
    
    .mobile-input-group .input-group-text {
        border-radius: 8px 0 0 8px;
        min-width: 40px;
        justify-content: center;
    }
    
    .mobile-input-group .form-control {
        border-radius: 0 8px 8px 0;
    }
}

/* Mobilde navbar düzenlemeleri */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Mobilde footer düzenlemeleri */
@media (max-width: 768px) {
    .footer {
        padding: 1rem 0;
        font-size: 0.9rem;
    }
}

/* Mobilde genel düzenlemeler */
@media (max-width: 768px) {
    /* Mobilde scroll davranışı */
    html {
        scroll-behavior: smooth;
    }
    
    /* Mobilde touch hedef boyutları */
    .btn, .form-control, .form-select {
        min-height: 44px;
    }
    
    /* Mobilde focus görünürlüğü */
    .btn:focus, .form-control:focus, .form-select:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }
    
    /* Mobilde animasyon performansı */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Index sayfası mobil responsive kuralları */
@media (max-width: 768px) {
    /* Index sayfası container düzenlemeleri */
    .container-fluid.px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Index sayfası card düzenlemeleri */
    .card.border-0.shadow-sm {
        margin-bottom: 1rem;
        border-radius: 12px !important;
    }
    
    .card-header {
        padding: 1rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .card-header .d-flex {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    /* Tablo responsive düzenlemeleri */
    .table-responsive {
        border-radius: 12px;
        margin: 0 -1rem;
        padding: 0 1rem;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 800px; /* Tablonun minimum genişliği */
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem !important;
        white-space: nowrap;
    }
    
    /* Butonlar için temel optimizasyon */
    
    .btn-premium-warning,
    .btn-premium-success,
    .btn-premium-danger {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.85rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.25rem !important;
    }
    
    .btn-premium-warning i,
    .btn-premium-success i,
    .btn-premium-danger i {
        margin: 0 !important;
        font-size: 0.9rem !important;
    }
    
    /* İşlemler sütunu düzenlemeleri */
    .table td .d-flex {
        gap: 0.25rem !important;
        justify-content: center !important;
    }
    
    /* Badge düzenlemeleri */
    .badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    /* Başlık düzenlemeleri */
    .h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    /* Çok küçük ekranlar için ek düzenlemeler */
    .container-fluid.px-4 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .card-header {
        padding: 0.75rem !important;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.375rem 0.2rem !important;
    }
    
    .btn-premium-warning,
    .btn-premium-success,
    .btn-premium-danger {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.8rem !important;
        gap: 0.2rem !important;
    }
    
    .btn-premium-warning i,
    .btn-premium-success i,
    .btn-premium-danger i {
        font-size: 0.8rem !important;
    }
    
    /* Başlık daha da küçük */
    .h2 {
        font-size: 1.3rem !important;
    }
    
    /* Yeni kullanıcı ekle butonu */
    .btn-premium-primary {
        width: 100% !important;
        margin-top: 1rem !important;
        padding: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    /* Telefon boyutu için ek optimizasyonlar */
    .table {
        min-width: 700px; /* Daha dar minimum genişlik */
    }
    
    .table th:nth-child(1),
    .table td:nth-child(1) {
        width: 40px !important; /* Sıra sütunu */
    }
    
    .table th:nth-child(4),
    .table td:nth-child(4) {
        min-width: 100px !important; /* Telefon sütunu */
    }
    
    .table th:nth-child(5),
    .table td:nth-child(5) {
        min-width: 120px !important; /* Tarih sütunu */
    }
    
    .table th:nth-child(6),
    .table td:nth-child(6) {
        width: 120px !important; /* İşlemler sütunu */
    }
} 