/* NFT Datatable Custom Styles - matches history.blade.php modern look */

.nfts-table-responsive {
    background: #fff;
    border-radius: 1.5em;
    box-shadow: 0 8px 32px rgba(80,80,200,0.12);
    padding: 2em 1.5em;
    margin: 2em 0;
    overflow: hidden;
    position: relative;
}

.nfts-table {
    width: 100%;
    background: transparent;
    border-radius: 1em;
    font-family: 'Poppins', 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 1em;
    color: #232946;
    box-shadow: none;
    margin-bottom: 0;
}

.nfts-table thead th {
    background: linear-gradient(90deg, #ff6a88 0%, #ff99ac 100%);
    color: #ab1717;
    font-weight: 700;
    border: none;
    vertical-align: middle;
    font-size: 1.08em;
    padding: 1.1em 0.7em;
}
body.dark-mode .nfts-table thead th {
    background: linear-gradient(90deg, #23272f 0%, #ff6a88 100%) !important;
    color: #ff99ac !important;
    border: none !important;
}

.nfts-table thead th .datatable-header-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5em;
    width: 1.7em;
    height: 1.7em;
}

.nfts-table thead th .datatable-header-text {
    vertical-align: middle;
    font-size: 1em;
    font-weight: 700;
}

.nfts-table tbody td {
    background: #fff;
    color: #232946;
    font-size: 1em;
    padding: 0.85em 0.7em;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.nfts-table tbody tr:hover {
    background: #f8fafc;
    transition: background 0.2s;
}

.nfts-table-striped tbody tr:nth-of-type(odd) {
    background: #f7f7fb;
}

.nfts-table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .nfts-table-responsive {
        padding: 1.2em 0.7em;
    }
    .nfts-table thead th, .nfts-table tbody td {
        font-size: 0.98em;
        padding: 0.7em 0.5em;
    }
}
@media (max-width: 600px) {
    .nfts-table-responsive {
        padding: 0.7em 0.2em;
    }
    .nfts-table thead th, .nfts-table tbody td {
        font-size: 0.93em;
        padding: 0.5em 0.2em;
    }
}

/* Loading spinner style */
#datatableLoading .spinner-border {
    color: #ffd200 !important;
}

/* Fullscreen support */
#datatableFullscreenContainer:fullscreen .nfts-table {
    font-size: 1.1em;
}

/* --- Modern Tabs for NFTs Page --- */
.modern-tabs-container, .gradient-tabs-bg {
    margin-bottom: 2em;
    background: linear-gradient(90deg, #ff6a88 0%, #ff99ac 30%, #fcb1e3 60%, #ff85a1 85%, #ff6a88 100%);
    border-radius: 1.2em;
    box-shadow: 0 4px 24px rgba(255, 106, 136, 0.13), 0 1.5px 6px rgba(252, 177, 227, 0.10);
    padding: 0.7em 1.2em;
    transition: background 0.3s, box-shadow 0.3s;
}
@media (max-width: 900px) {
    .modern-tabs-container, .gradient-tabs-bg {
        padding: 0.5em 0.3em;
    }
}
@media (max-width: 600px) {
    .modern-tabs-container, .gradient-tabs-bg {
        padding: 0.3em 0.1em;
        border-radius: 0.8em;
    }
}
body.dark-mode .modern-tabs-container, body.dark-mode .gradient-tabs-bg {
    background: linear-gradient(90deg, #23272f 0%, #ff6a88 30%, #ff99ac 60%, #fcb1e3 85%, #23272f 100%) !important;
    color: #ff99ac !important;
    box-shadow: 0 4px 24px rgba(255, 106, 136, 0.10), 0 1.5px 6px rgba(255, 153, 172, 0.08);
    transition: background 0.3s, box-shadow 0.3s;
}
.modern-tabs {
    display: flex;
    gap: 1.2em;
    flex-wrap: wrap;
}
.beautiful-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em;
    border-radius: 1em;
    padding: 0.5em 0.5em;
    background: linear-gradient(90deg, #fffbe7 0%, #ffd200 60%, #ff6a88 100%);
    box-shadow: 0 2px 12px rgba(255,215,0,0.08);
    justify-content: flex-start;
}
.modern-tab, .beautiful-tab {
    display: flex;
    align-items: center;
    gap: 0.5em;
    background: #fff;
    border: none;
    color: #ff6a88;
    font-weight: 700;
    font-size: 1.1em;
    border-radius: 1em 1em 0 0;
    padding: 0.6em 1.3em;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(255,215,0,0.04);
    outline: none;
}
.modern-tab.active, .modern-tab:focus, .modern-tab:hover,
.beautiful-tab.active, .beautiful-tab:focus {
    background: linear-gradient(90deg, #ffd200 0%, #ff6a88 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,106,136,0.12);
    z-index: 2;
    transform: translateY(-2px) scale(1.04);
}
.beautiful-tab .tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #fffbe7;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(255,215,0,0.08);
}
.beautiful-tab .tab-label {
    margin-left: 2px;
}
.beautiful-tab:hover:not(.active) {
    background: #fffbe7;
    color: #ff6a88;
    transform: translateY(-1px) scale(1.02);
}
@media (max-width: 900px) {
    .modern-tabs-container, .gradient-tabs-bg {
        padding: 0.5em 0.3em;
    }
}
@media (max-width: 767px) {
    .modern-tabs, .beautiful-tabs {
        flex-direction: column;
        gap: 0.7em;
        border-radius: 1em;
        padding: 0.3em 0.1em;
    }
    .modern-tab, .beautiful-tab {
        width: 100%;
        border-radius: 1em;
        justify-content: flex-start;
        font-size: 1em;
        padding: 0.8em 1em;
    }
    .beautiful-tab .tab-icon {
        width: 24px;
        height: 24px;
    }
}
@media (max-width: 600px) {
    .modern-tabs-container, .gradient-tabs-bg {
        padding: 0.2em 0.05em;
        border-radius: 0.8em;
    }
}
body.dark-mode .modern-tab, body.dark-mode .beautiful-tab {
    background: #23272f !important;
    color: #ffd200 !important;
}
body.dark-mode .modern-tab.active, body.dark-mode .modern-tab:focus, body.dark-mode .modern-tab:hover,
body.dark-mode .beautiful-tab.active, body.dark-mode .beautiful-tab:focus {
    background: linear-gradient(90deg, #ffd200 0%, #23272f 100%) !important;
    color: #23272f !important;
}
body.dark-mode .beautiful-tab .tab-icon {
    background: #23272f !important;
}
body.dark-mode .beautiful-tab.active .tab-icon, body.dark-mode .beautiful-tab:focus .tab-icon {
    background: #ffd200 !important;
}

/* --- DataTable Pagination & Controls: Match Markets Page --- */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: linear-gradient(90deg, #ff6a88 0%, #ff99ac 100%);
    color: #fff !important;
    border-radius: 1em;
    border: none;
    margin: 0 0.2em;
    padding: 0.4em 1em;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #fff !important;
    color: #ff6a88 !important;
}
.dataTables_wrapper .dataTables_length {
    margin-bottom: 18px;
    float: left;
    background: linear-gradient(90deg, #ff6a88 0%, #ff99ac 100%);
    padding: 8px 18px;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(255,106,136,0.08);
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    color: #fff;
}
.dataTables_wrapper .dataTables_length select {
    border-radius: 16px;
    border: 1.5px solid #ff6a88;
    padding: 6px 32px 6px 16px;
    background: #fff6fa;
    color: #ff6a88;
    font-size: 15px;
    margin-left: 8px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-weight: 600;
}
.dataTables_wrapper .dataTables_length select:focus {
    border: 1.5px solid #ff99ac;
    box-shadow: 0 2px 8px rgba(255,153,172,0.08);
}
.dataTables_wrapper .dataTables_info {
    color: #ff6a88;
    font-weight: 600;
    margin-top: 1em;
}
.dataTables_filter {
    width: 100%;
    max-width: 400px;
    margin-bottom: 18px;
    float: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: none;
    padding: 0;
}
.dataTables_filter .search-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}
.dataTables_filter .search-icon {
    position: absolute;
    left: 16px;
    width: 22px;
    height: 22px;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
}
.dataTables_filter input[type="search"] {
    border-radius: 24px;
    border: 1.5px solid #ff6a88;
    padding: 8px 44px 8px 44px;
    background: #fff6fa;
    transition: border 0.2s, box-shadow 0.2s;
    font-size: 15px;
    outline: none;
    color: #ff6a88;
    width: 100%;
    box-shadow: 0 2px 8px rgba(255,106,136,0.08);
}
.dataTables_filter input[type="search"]:focus {
    border: 1.5px solid #ff99ac;
    background: #fff;
    box-shadow: 0 2px 8px rgba(255,153,172,0.08);
}
.dataTables_filter #clear-search {
    margin-left: 8px;
    border: none;
    background: linear-gradient(90deg, #ff6a88 0%, #ff99ac 100%);
    color: #fff;
    border-radius: 16px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(255,106,136,0.12);
}
.dataTables_filter #clear-search:hover {
    background: linear-gradient(90deg, #fff 0%, #ff6a88 100%);
    color: #ff6a88;
}

/* --- NFT Custom Search Bar Styles (moved from JS) --- */
.nfts-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 340px;
    margin: 0 auto 1em auto;
    background: #fff;
    border-radius: 2em;
    box-shadow: 0 2px 12px rgba(255,106,136,0.07), 0 1.5px 6px rgba(255,153,172,0.08);
    padding: 0.2em 0.5em 0.2em 0.2em;
    transition: box-shadow 0.2s;
}
.nfts-search-wrapper:focus-within {
    box-shadow: 0 0 0 2px #ff6a88, 0 2px 12px rgba(255,106,136,0.10);
}
.nfts-search-input {
    border: none;
    outline: none;
    background: transparent;
    padding-left: 2.2em;
    padding-right: 0.5em;
    font-size: 1.08em;
    height: 2.2em;
    border-radius: 2em;
    width: 100%;
    min-width: 120px;
    color: #333;
    transition: background 0.2s;
}
.nfts-search-input::placeholder {
    color: #b0b0b0;
    opacity: 1;
}
.nfts-search-icon {
    position: absolute;
    left: 0.9em;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1em;
    height: 1.1em;
    pointer-events: none;
    color: #ff6a88;
    opacity: 0.85;
}
.nfts-clear-search {
    background: linear-gradient(90deg, #ff6a88 0%, #ff99ac 100%);
    color: #fff;
    border: none;
    border-radius: 1.5em;
    padding: 0.3em 1.1em;
    margin-left: 0.5em;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(255,106,136,0.08);
}
.nfts-clear-search:hover, .nfts-clear-search:focus {
    background: linear-gradient(90deg, #ff99ac 0%, #ff6a88 100%);
    color: #fff;
    outline: none;
}
@media (max-width: 600px) {
    .nfts-search-wrapper { max-width: 100%; }
    .nfts-search-input { font-size: 1em; }
}

/* --- Highlighting for DataTable Search Results --- */
.highlight {
    background: #fffbe7;
    color: #d72660;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(255,215,0,0.08);
    transition: background 0.2s, color 0.2s;
}
.highlight-row {
    background: #fff6fa !important;
    box-shadow: 0 2px 8px rgba(255,106,136,0.07);
}

/* Highlight first column like markets datatable */
.nfts-table th:first-child,
.nfts-table td:first-child {
    background: linear-gradient(90deg, #ffdde1 0%, #ff6a88 100%);
    color: #d72660;
    font-weight: bold;
    border-right: 2px solid #ff6a88;
}
body.dark-mode .nfts-table th:first-child,
body.dark-mode .nfts-table td:first-child {
    background: linear-gradient(90deg, #23272f 0%, #ff6a88 100%) !important;
    color: #ff99ac !important;
    border-right: 2px solid #ff6a88 !important;
}

/* Optional: Full-width buttons on mobile */
@media (max-width: 768px) {
    .dt-buttons {
        display: none;
    }

    .m-portlet {
        padding: 0 !important;
    }

    .m-portlet .m-portlet__body {
        padding: 0 !important;
    }
}
