﻿.category-tabs-container {
    position: relative;
}

.category-tab {
    transition: all 0.3s ease;
    border-radius: 8px !important;
    margin: 0 2px;
    /* Metin netliği için eklenen özellikler */
    color: #495057 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-shadow: none !important;
    background-color: transparent !important;
    border: 1px solid transparent !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 120px;
    padding: 12px 16px !important;
}

    .category-tab:hover {
        background-color: rgba(var(--bs-primary-rgb), 0.1);
        transform: translateY(-1px);
        /* Hover durumunda daha net görünüm */
        color: #212529 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }


    .category-tab.active {
        background-color: var(--bs-primary) !important;
        color: white !important;
        box-shadow: 0 4px 8px rgba(var(--bs-primary-rgb), 0.3);
        /* Aktif tab için daha kalın font */
        font-weight: 600 !important;
        border-color: var(--bs-primary) !important;
    }

        .category-tab.active:hover {
            background-color: var(--bs-primary) !important;
            color: white !important;
            /* Aktif tab hover durumunda biraz daha koyu */
            filter: brightness(0.95);
        }

.nav-link.text-success:hover {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #146c43 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.2);
}

/* Nav pills genel ayarları */
.nav-pills {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
    padding: 8px !important;
}

/* İkonlar için düzenleme */
.category-tab i,
.nav-link.text-success i {
    font-size: 16px;
    margin-right: 6px;
    opacity: 0.8;
}

.category-tab.active i {
    opacity: 1;
}


.category-content-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef !important;
}

.product-card-draggable {
    transition: all 0.3s ease;
}

    .product-card-draggable:hover {
        transform: translateY(-2px);
    }

        .product-card-draggable:hover .product-card {
            box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
        }

.product-card {
    transition: all 0.3s ease;
    border-left: 4px solid var(--bs-primary);
}

.move-buttons .btn-group-vertical {
    gap: 2px;
}

.move-buttons .btn {
    line-height: 1;
    width: 24px;
    height: 20px;
    border: 1px solid #dee2e6;
}

    .move-buttons .btn:hover:not(:disabled) {
        background-color: var(--bs-primary);
        color: white;
        border-color: var(--bs-primary);
    }

    .move-buttons .btn:disabled {
        opacity: 0.3;
    }

.product-sequence-badge .badge {
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
}

.empty-products-state,
.empty-categories-state {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    background: #f8f9fa;
}

.sortable-list {
    min-height: 100px;
}

.preview-container {
    border-radius: 12px;
    overflow: hidden;
}

.category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 12px;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-pills .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    /* Kategori tabları için özel responsive */
    .category-tab {
        font-size: 12px !important;
        padding: 10px 12px !important;
        min-width: 100px;
        margin: 0 1px;
    }

        .category-tab i,
        .nav-link.text-success i {
            font-size: 14px;
            margin-right: 4px;
        }

    .category-content-card {
        padding: 1rem !important;
    }

    .product-card .card-body {
        padding: 1rem !important;
    }

    .move-buttons {
        display: none;
    }
}

/* Animation for adding/removing items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge düzeltmesi */
.badge.bg-primary-transparent {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
    color: var(--bs-primary) !important;
    font-weight: 500;
}

/* Genel kart düzeltmeleri */
.card.border-0 {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 12px;
}

/* Tab container için ek düzenleme */
.category-tabs-container .nav-justified .nav-item {
    flex-basis: auto;
    flex-grow: 0;
    margin-right: 4px;
}

    .category-tabs-container .nav-justified .nav-item:last-child {
        margin-right: 0;
    }

.product-card-draggable {
    animation: slideIn 0.3s ease;
}

/* RemixIcon fallback */
.ri-restaurant-line:before {
    content: "🍽️";
}

.ri-information-line:before {
    content: "ℹ️";
}

.ri-folder-line:before {
    content: "📁";
}

.ri-add-line:before {
    content: "➕";
}

.ri-delete-bin-line:before {
    content: "🗑️";
}

.ri-arrow-up-line:before {
    content: "⬆️";
}

.ri-arrow-down-line:before {
    content: "⬇️";
}

.ri-eye-line:before {
    content: "👁️";
}

.ri-save-line:before {
    content: "💾";
}

.ri-smartphone-line:before {
    content: "📱";
}

.ri-phone-line:before {
    content: "📞";
}

.ri-shopping-basket-line:before {
    content: "🛒";
}

.ri-folder-add-line:before {
    content: "📂";
}

.ri-share-line:before {
    content: "🔗";
}

.ri-instagram-line:before {
    content: "📷";
}

.ri-facebook-line:before {
    content: "📘";
}

.ri-linkedin-line:before {
    content: "💼";
}

.ri-global-line:before {
    content: "🌐";
}

.ri-time-line:before {
    content: "⏰";
}

.ri-star-line:before {
    content: "⭐";
}

.ri-gift-line:before {
    content: "🎁";
}

.ri-check-line:before {
    content: "✅";
}

.ri-arrow-up-down-line:before {
    content: "↕️";
}

.highlighted-product {
    border: 2px solid #f59e0b !important;
    border-radius: 8px !important;
}
/* === BASIT DRAG HANDLE STİLLERİ === */
.category-drag-handle, .product-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* Kategori Handle - Mavi Ton */
.category-drag-handle {
    width: 32px;
    height: 32px;
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

    .category-drag-handle:hover {
        background: #3b82f6;
        color: white;
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    }

/* Ürün Handle - Yeşil Ton */
.product-drag-handle {
    width: 28px;
    height: 28px;
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

    .product-drag-handle:hover {
        background: #10b981;
        color: white;
        transform: scale(1.05);
        box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
    }

/* === DRAG STATES === */
.sortable-ghost {
    opacity: 0.5 !important;
    background: #f1f5f9 !important;
    border: 2px dashed #cbd5e1 !important;
    border-radius: 8px !important;
}

.sortable-chosen {
    background: #eff6ff !important;
    border: 1px solid #3b82f6 !important;
    border-radius: 8px !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.sortable-drag {
    opacity: 0.9 !important;
    transform: rotate(2deg) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
}

/* === CURSOR === */
.category-drag-handle, .product-drag-handle {
    cursor: grab;
}

    .category-drag-handle:active, .product-drag-handle:active {
        cursor: grabbing;
    }

/* === DİĞER ELEMENTLER === */
.dragging-category .product-drag-handle,
.dragging-product .category-drag-handle {
    opacity: 0.3;
    pointer-events: none;
}