/* =====================
   BASE / SHARED
===================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mindweco-pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 15px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.search-icon-media-file {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

#mindweco-index-all-files {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1a365d 0%, #0f172a 100%) !important;
    color: white !important;
    padding: 12px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

#mind-web-settings-wrapper .unindex-file {
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
    border: 2px solid red !important;
    color: red !important;
}

@media screen and (max-width: 1300px) {

    .indexing-status > div {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #mindweco-index-all-files {
        justify-content: center;
        font-size: 13px;
        padding: 10px;
        box-sizing: border-box;
        margin-top: 15px;
    }

    #progress-bar {
        font-size: 11px;
    }

    .mindweco-result-success {
        padding: 8px;
    }
    .mindweco-result-success h3 {
        font-size: 16px;
    }
    .mindweco-paragraph-complete {
        font-size: 13px;
        margin: 4px 0;
    }

    /* --- Nav tabs --- */
    .mindweco-nav-tabs {
        display: flex !important;
        flex-wrap: wrap;
        gap: 4px;
    }
    .mindweco-nav-tab {
        flex: 1 1 auto;
        text-align: center;
        font-size: 12px;
        padding: 6px 8px;
    }

    #tab-manage-files .d-flex.align-items-center.border-bottom {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px;
    }

    .search-wrapper {
        width: 100% !important;
        margin: 0 !important;
    }
    #search-input-files {
        width: 100%;
        box-sizing: border-box;
    }

    #tab-manage-files .d-flex.justify-content-end {
        justify-content: stretch !important;
        flex-wrap: wrap;
    }
    #tab-manage-files .d-flex.justify-content-end .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    #table-indexed-files th:nth-child(1),
    #table-indexed-files td:nth-child(1),
    #table-indexed-files th:nth-child(3),
    #table-indexed-files td:nth-child(3),
    #table-indexed-files th:nth-child(4),
    #table-indexed-files td:nth-child(4),
    #table-indexed-files th:nth-child(5),
    #table-indexed-files td:nth-child(5),
    #table-indexed-files th:nth-child(8),
    #table-indexed-files td:nth-child(8),
    #table-indexed-files th:nth-child(9),
    #table-indexed-files td:nth-child(9) {
        display: none;
    }

    .unindex-file {
        font-size: 11px;
        padding: 3px 5px;
        white-space: nowrap;
    }

    #mind-web-settings-wrapper #table-indexed-files tbody td {
        white-space: normal;
        word-break: break-word;
    }

    
    .mindweco-page-item,
    .mindweco-page-previous,
    .mindweco-page-next {
        padding: 4px 7px;
        font-size: 12px;
    }

    /* --- Inner card padding --- */
    .bg-white.p-4 {
        padding: 12px !important;
    }
}

/* =====================
   MOBILE: max-width 480px
   Extra small screens
===================== */
@media screen and (max-width: 480px) {

    /* Stats: single column on very small screens */
    .indexing-status > div {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }

    .indexing-status div[style*="font-size:24px"] {
        font-size: 20px !important;
    }

    /* Card title */
    .product-catalog-title {
        font-size: 18px;
    }

    /* Table name column shouldn't be too wide */
    #table-indexed-files td:nth-child(6),
    #table-indexed-files th:nth-child(6) {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

}

.search-icon-media-file{
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}