/* Moved from resources/views/livecoinwatch/history.blade.php */
/* --- Modern Title Bar Styles --- */
.modern-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #fffbe7 0%, #ffd200 60%, #43cea2 100%);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(255,215,0,0.08);
    padding: 1.1rem 2.2rem 1.1rem 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    flex-wrap: wrap;
}
.m-portlet__head-title.custom-modern {
    display: flex;
    align-items: center;
    font-size: 1.7rem;
    font-weight: 700;
    color: #333;
    gap: 1.1rem;
    letter-spacing: 0.5px;
    font-family: 'Poppins', 'Segoe UI', 'Roboto', Arial, sans-serif;
}
.modern-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd200 0%, #43cea2 100%);
    box-shadow: 0 2px 8px rgba(255,215,0,0.10);
    margin-right: 0.7em;
}
.modern-title-icon svg {
    width: 32px;
    height: 32px;
}
.modern-title-text {
    font-size: 1.25em;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
}
.modern-title-bar .darkmode-switch {
    margin-left: auto;
    min-width: 140px;
}
@media (max-width: 767px) {
    .modern-title-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0.7rem 1rem 0.7rem;
        gap: 0.7rem;
    }
    .m-portlet__head-title.custom-modern {
    font-size: 1.2rem;
        gap: 0.7rem;
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px 8px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(226, 232, 240, 0.6);
    }
    .m-portlet__head-title.custom-modern .modern-title-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
        margin-right: 0;
    }
    .m-portlet__head-title.custom-modern .modern-title-icon svg {
        width: 28px;
        height: 28px;
    }
    .m-portlet__head-title.custom-modern .modern-title-text {
        font-size: 1.4rem;
        font-weight: 700;
        color: #374151;
        text-align: center;
        flex: 1;
        line-height: 1.3;
    }
    .modern-title-icon {
        width: 36px;
        height: 36px;
        margin-right: 0.5em;
    }
    .modern-title-icon svg {
        width: 24px;
        height: 24px;
    }
    .modern-title-bar .darkmode-switch {
        min-width: 100px;
        align-self: flex-end;
    }
}
/* Responsive DataTable for mobile */
@media (max-width: 767px) {
    #livecoin_history thead {
    display: none;
}
    #livecoin_history tbody, #livecoin_history tr, #livecoin_history td {
    display: block;
        width: 100%;
    }
    #livecoin_history tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.03);
        background: #fff;
        padding: 0.5rem 0.75rem;
    }
    #livecoin_history td {
        text-align: left;
        padding-left: 50%;
    position: relative;
        border: none;
        border-bottom: 1px solid #eee;
        min-height: 40px;
        box-sizing: border-box;
    }
    #livecoin_history td:last-child {
        border-bottom: none;
    }
    #livecoin_history td:before {
        content: attr(data-label);
    position: absolute;
        left: 0.75rem;
    top: 0;
        width: 45%;
        white-space: nowrap;
        font-weight: bold;
        color: #333;
        font-size: 0.95em;
    }
}
/* Custom DataTable Search Bar (like CoinMarketCal) */
.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;
    border-radius: 0;
    box-shadow: none;
}
.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 #ffd200;
    padding: 8px 44px 8px 44px;
    background: #fffbe7;
    transition: border 0.2s, box-shadow 0.2s;
    font-size: 15px;
    outline: none;
    color: #333;
    width: 100%;
    box-shadow: 0 2px 8px rgba(255,215,0,0.08);
}
.dataTables_filter input[type="search"]:focus {
    border: 1.5px solid #f7971e;
    background: #fff;
    box-shadow: 0 2px 8px rgba(247,151,30,0.08);
}
.dataTables_filter #clear-search {
    margin-left: 8px;
    border: none;
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 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(221,36,118,0.12);
}
.dataTables_filter #clear-search:hover {
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
}
/* --- CoinMarketCal-style DataTables Length Selector --- */
.dataTables_wrapper .dataTables_length {
    margin-bottom: 18px;
    float: left;
    background: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
    padding: 8px 18px;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(255,215,0,0.08);
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}
.dataTables_wrapper .dataTables_length select {
    border-radius: 16px;
    border: 1.5px solid #ffd200;
    padding: 6px 32px 6px 16px;
    background: #fffbe7 url("data:image/svg+xml,%3Csvg width='16' height='16' fill='orange' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23f7971e' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center/18px 18px;
    color: #333;
    font-size: 15px;
    margin-left: 8px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.dataTables_wrapper .dataTables_length select:focus {
    border: 1.5px solid #f7971e;
    box-shadow: 0 2px 8px rgba(247,151,30,0.08);
}
@media (max-width: 600px) {
    .dataTables_wrapper .dataTables_length {
        width: 100%;
        justify-content: center;
        padding: 8px 8px;
        font-size: 14px;
    }
    .dataTables_wrapper .dataTables_length select {
        font-size: 14px;
        padding: 6px 28px 6px 12px;
    }
}
/* --- CoinMarketCal-style DataTables Pagination --- */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 18px;
    float: right;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
    border: none;
        border-radius: 8px;
    margin: 0 4px;
    color: #fff !important;
    padding: 8px 18px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(67,206,162,0.08);
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(221,36,118,0.12);
}
/* --- CoinMarketCal-style DataTables Info Box --- */
.datatable-info-beautiful {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(90deg, #e0eafc 0%, #cfdef3 100%);
    color: #4a4e69;
    border-radius: 18px;
    padding: 12px 28px;
    margin: 18px 0 0 0;
    font-size: 1.15rem;
    font-family: 'Poppins', 'Segoe UI', 'Roboto', Arial, sans-serif;
    box-shadow: 0 2px 12px rgba(106,17,203,0.08);
    font-weight: 500;
    gap: 16px;
    min-height: 48px;
}
.datatable-info-beautiful .datatable-info-icon {
    font-size: 1.7rem;
    margin-right: 10px;
    color: #6a11cb;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(106,17,203,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}
.datatable-info-beautiful .datatable-info-text {
    color: #5f6caf;
    font-size: 1.15rem;
    font-weight: 600;
}
.datatable-info-beautiful strong {
    color: #f7971e;
    font-weight: 700;
    font-size: 1.1em;
}
@media (max-width: 600px) {
    .datatable-info-beautiful {
        font-size: 1rem;
        padding: 10px 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .datatable-info-beautiful .datatable-info-icon {
    font-size: 1.2rem;
        padding: 6px;
        margin-right: 0;
        margin-bottom: 4px;
    }
}

/* Beautiful DataTable Headers */
    #livecoin_history thead th {
    background-color: #f4f6f9;
    color: #525f7f;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
        font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}
.datatable-header-icon {
    display: inline-flex;
    align-items: center;
        justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd200 0%, #f7971e 100%);
    box-shadow: 0 2px 8px rgba(255,215,0,0.10);
    margin-right: 0.5em;
    font-size: 1.35em;
    color: #fff;
    border: 2px solid #fffbe7;
    transition: background 0.2s, box-shadow 0.2s;
}
#livecoin_history thead th .datatable-header-icon {
    vertical-align: middle;
}
#livecoin_history thead th .datatable-header-icon i {
    color: #fff;
    font-size: 1.25em;
}
.datatable-header-text {
    font-size: 1.15em;
    vertical-align: middle;
    margin-left: 0.35em;
}
#livecoin_history thead th.sorting,
#livecoin_history thead th.sorting_asc,
#livecoin_history thead th.sorting_desc {
    cursor: pointer;
}

#livecoin_history thead th.sorting:hover,
#livecoin_history thead th.sorting_asc:hover,
#livecoin_history thead th.sorting_desc:hover {
    background-color: #e9ecef;
}

/* Modern Tabs Navigation */
.modern-tabs-container {
    margin-bottom: 1.5rem;
}

.modern-tabs {
    display: flex;
    flex-wrap: wrap;
        gap: 8px;
    border-bottom: 1px solid #dee2e6;
}

.modern-tab {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    text-decoration: none;
    background-color: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease-in-out;
    position: relative;
    bottom: -1px;
}

.modern-tab:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef #e9ecef #dee2e6;
    color: #0d6efd;
}

.modern-tab.active {
    color: #0d6efd;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .modern-tabs {
        flex-direction: column;
        border-bottom: none;
        gap: 5px;
    }
    .modern-tab {
        width: 100%;
    text-align: center;
        border: 1px solid #dee2e6;
        border-radius: 8px;
    bottom: 0;
    }
    .modern-tab.active {
        background: linear-gradient(90deg, #0d6efd 0%, #007bff 100%);
        color: #fff;
        border-color: transparent;
    }
    }

    #livecoin_history tbody td {
    font-style: italic;
}

#livecoin_history th:first-child,
#livecoin_history td:first-child {
    background: linear-gradient(90deg, #fffbe7 0%, #ffd200 100%);
    color: #333;
    font-weight: bold;
    border-right: 2px solid #ffd200;
}

/* --- DARK MODE OVERRIDES --- */
body.dark-mode, .dark-mode .m-content {
    background: #181a20 !important;
    color: #eaeaea !important;
}
.dark-mode .m-portlet, .dark-mode .table-responsive, .dark-mode #livecoin_history tr {
    background: #23272f !important;
    color: #eaeaea !important;
}
.dark-mode #livecoin_history thead th {
    background-color: #23272f !important;
    color: #ffd200 !important;
    border-bottom: 2px solid #23272f !important;
    border-top: 1px solid #23272f !important;
}
.dark-mode #livecoin_history tbody td {
    background: #23272f !important;
    color: #eaeaea !important;
    border-bottom: 1px solid #23272f !important;
}
.dark-mode #livecoin_history th:first-child,
.dark-mode #livecoin_history td:first-child {
    background: linear-gradient(90deg, #23272f 0%, #ffd200 100%) !important;
    color: #ffd200 !important;
    border-right: 2px solid #ffd200 !important;
}
.dark-mode .modern-tab {
    background: #23272f !important;
    color: #ffd200 !important;
    border-color: #23272f !important;
}
.dark-mode .modern-tab.active {
    background: linear-gradient(90deg, #23272f 0%, #181a20 100%) !important;
    color: #ffd200 !important;
    border-color: #ffd200 #ffd200 #23272f !important;
}
.dark-mode .dataTables_filter input[type="search"] {
    background: #23272f !important;
    color: #ffd200 !important;
    border: 1.5px solid #ffd200 !important;
}
.dark-mode .dataTables_filter input[type="search"]:focus {
    background: #181a20 !important;
    border: 1.5px solid #f7971e !important;
}
.dark-mode .dataTables_filter #clear-search {
    background: linear-gradient(90deg, #23272f 0%, #ffd200 100%) !important;
    color: #ffd200 !important;
}
.dark-mode .dataTables_filter #clear-search:hover {
    background: linear-gradient(90deg, #ffd200 0%, #23272f 100%) !important;
    color: #23272f !important;
}
.dark-mode .dataTables_wrapper .dataTables_length {
    background: linear-gradient(90deg, #23272f 0%, #ffd200 100%) !important;
    color: #ffd200 !important;
}
.dark-mode .dataTables_wrapper .dataTables_length select {
    background: #23272f !important;
    color: #ffd200 !important;
    border: 1.5px solid #ffd200 !important;
}
.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: linear-gradient(90deg, #23272f 0%, #ffd200 100%) !important;
    color: #ffd200 !important;
}
.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(90deg, #ffd200 0%, #23272f 100%) !important;
    color: #23272f !important;
}
.dark-mode .datatable-info-beautiful {
    background: linear-gradient(90deg, #23272f 0%, #181a20 100%) !important;
    color: #ffd200 !important;
}
.dark-mode .datatable-info-beautiful .datatable-info-icon {
    background: linear-gradient(135deg, #23272f 0%, #ffd200 100%) !important;
    color: #ffd200 !important;
}
.dark-mode .datatable-info-beautiful .datatable-info-text {
    color: #ffd200 !important;
}
.dark-mode .datatable-info-beautiful strong {
    color: #f7971e !important;
}
/* SVG color tweaks for dark mode */
.dark-mode #livecoin_history thead th .datatable-header-icon svg {
    filter: brightness(0.8) contrast(1.2);
}
.darkmode-switch {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #ffd200 0%, #f7971e 100%);
    color: #333;
    border: none;
    border-radius: 999px;
    padding: 8px 24px 8px 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(255,215,0,0.10);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    position: relative;
        min-width: 120px;
    outline: none;
}
.darkmode-switch:focus {
    box-shadow: 0 0 0 3px #ffd20055;
}
.darkmode-switch:hover {
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
    color: #fff;
}
.darkmode-switch .darkmode-switch-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fffbe7;
    box-shadow: 0 2px 8px rgba(255,215,0,0.10);
    margin-right: 8px;
    transition: background 0.2s;
    position: relative;
        overflow: hidden;
}
.darkmode-switch .icon-moon,
.darkmode-switch .icon-sun {
    position: absolute;
    left: 0;
    top: 0;
        width: 100%;
    height: 100%;
        opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    }
.darkmode-switch .icon-moon {
    opacity: 1;
    transform: scale(1);
}
.darkmode-switch.active .icon-moon {
    opacity: 0;
    transform: scale(0.7);
}
.darkmode-switch .icon-sun {
    opacity: 0;
    transform: scale(0.7);
}
.darkmode-switch.active .icon-sun {
    opacity: 1;
        transform: scale(1);
    }
.darkmode-switch .darkmode-switch-label {
    transition: color 0.2s;
}
.dark-mode .darkmode-switch {
    background: linear-gradient(90deg, #23272f 0%, #ffd200 100%) !important;
    color: #ffd200 !important;
}
.dark-mode .darkmode-switch .darkmode-switch-icon {
    background: #23272f !important;
}
.dark-mode .darkmode-switch:focus {
    box-shadow: 0 0 0 3px #ffd20055;
}
.dark-mode .darkmode-switch:hover {
    background: linear-gradient(90deg, #ffd200 0%, #23272f 100%) !important;
    color: #23272f !important;
}
#datatableFullscreenContainer:fullscreen {
    background: #fff;
    z-index: 9999;
    box-shadow: 0 0 0 100vmax rgba(0,0,0,0.15);
    padding: 2vw 2vw 2vw 2vw;
    border-radius: 0;
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}
body.dark-mode #datatableFullscreenContainer:fullscreen {
    background: #181c1f;
}
#datatableFullscreenContainer:fullscreen table {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

/* Custom class for JS fullscreen fallback or extra styling */
.datatable-fullscreen {
    background: #fff !important;
    z-index: 9999 !important;
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw !important;
    height: 100vh !important;
    box-shadow: 0 0 0 100vmax rgba(0,0,0,0.15);
    padding: 2vw 2vw 2vw 2vw !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow: auto !important;
}
body.dark-mode .datatable-fullscreen {
    background: #181c1f !important;
}
.fullscreen-switch {
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(67,206,162,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    outline: none;
    position: relative;
    min-width: 160px;
}
.fullscreen-switch:focus {
    box-shadow: 0 0 0 3px #43cea255;
}
.fullscreen-switch:hover {
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.03);
}
.fullscreen-switch.active {
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    color: #fff;
}
.fullscreen-switch-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fffbe7;
    box-shadow: 0 2px 8px rgba(255,215,0,0.10);
    margin-right: 8px;
    transition: background 0.2s;
    position: relative;
        overflow: hidden;
}
.fullscreen-switch-label {
    font-size: 1.1em;
    font-weight: 600;
    transition: color 0.2s;
}
@media (max-width: 600px) {
    .fullscreen-switch {
        width: 100%;
        justify-content: center;
        font-size: 0.98rem;
        padding: 10px 10px;
    }
    .fullscreen-switch-label {
        font-size: 1em;
    }
}
/* Highlight search results (CoinMarketCal style) */
.dataTables_wrapper .highlight {
    background: #fffbe7 !important;
    color: #ff512f !important;
    font-weight: bold;
    border-radius: 4px;
    padding: 2px 2px;
    box-shadow: 0 1px 4px rgba(255,215,0,0.08);
    transition: background 0.2s, color 0.2s;
}
body.dark-mode .dataTables_wrapper .highlight {
    background: #333 !important;
    color: #ffd200 !important;
}
/* --- Beautiful Tabs Redesign --- */
.beautiful-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: none;
    background: linear-gradient(90deg, #fffbe7 0%, #ffd200 100%);
    border-radius: 16px;
    padding: 8px 10px;
    box-shadow: 0 2px 12px rgba(255,215,0,0.08);
    justify-content: flex-start;
}
.beautiful-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    font-size: 1.08rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    background: #fff;
    border: none;
    border-radius: 12px 12px 0 0;
    position: relative;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 1px 4px rgba(255,215,0,0.04);
    outline: none;
}
.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.active, .beautiful-tab:focus {
    background: linear-gradient(90deg, #ffd200 0%, #f7971e 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(247,151,30,0.12);
    z-index: 2;
    transform: translateY(-2px) scale(1.04);
}
.beautiful-tab.active .tab-icon, .beautiful-tab:focus .tab-icon {
    background: #fff;
}
.beautiful-tab:hover:not(.active) {
    background: #fffbe7;
    color: #0d6efd;
    transform: translateY(-1px) scale(1.02);
}
@media (max-width: 767px) {
    .beautiful-tabs {
        flex-direction: column;
        gap: 8px;
        padding: 6px 2px;
        border-radius: 12px;
    }
    .beautiful-tab {
        width: 100%;
        border-radius: 10px;
        justify-content: flex-start;
        font-size: 1rem;
        padding: 12px 12px;
    }
    .beautiful-tab .tab-icon {
        width: 24px;
        height: 24px;
    }
}
/* Dark mode for beautiful tabs */
body.dark-mode .beautiful-tabs {
    background: linear-gradient(90deg, #23272f 0%, #ffd200 100%) !important;
}
body.dark-mode .beautiful-tab {
    background: #23272f !important;
    color: #ffd200 !important;
}
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;
}
/* Beautiful very light gradient background for m-portlet */
.m-portlet {
    background: linear-gradient(135deg, #fffbe7 0%, #f7faff 100%);
    /* fallback for old browsers */
    box-shadow: 0 2px 16px rgba(255,215,0,0.04);
}
/* Dark mode override for m-portlet gradient */
body.dark-mode .m-portlet {
    background: linear-gradient(135deg, #23272f 0%, #23272f 100%) !important;
    /* keep it subtle in dark mode */
}
.table-row-hover {
    background: linear-gradient(90deg, #fffbe7 0%, #ffd20022 100%) !important;
    transition: background 0.2s;
}
/* DataTable Custom Button Styles */
.datatable-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    align-items: center;
}
.datatable-btn {
    background: linear-gradient(90deg, #ffd200 0%, #43cea2 100%);
    color: #333;
    border: none;
    border-radius: 24px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(255,215,0,0.10);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    outline: none;
}
.datatable-btn:hover, .datatable-btn:focus {
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
    color: #fff;
}
.datatable-btn-icon {
    display: flex;
    align-items: center;
    margin-right: 6px;
}
@media (max-width: 600px) {
    .datatable-toolbar {
        flex-direction: column;
        gap: 6px;
    }
    .datatable-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.98rem;
        padding: 10px 10px;
    }
}
@media (max-width: 400px) {
    .datatable-btn span:not(.datatable-btn-icon) {
        display: none;
    }
} 

/* --- Navigation Explanation Styles --- */
.navigation-explanation {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.navigation-explanation:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.explanation-content {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
}

.explanation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.explanation-icon svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    stroke-width: 2;
}

.explanation-text {
    flex: 1;
    min-width: 0;
}

.explanation-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    font-family: 'Poppins', 'Segoe UI', 'Roboto', Arial, sans-serif;
    letter-spacing: 0.025em;
}

.explanation-description {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-weight: 400;
}

.explanation-description strong {
    color: #1e293b;
    font-weight: 600;
}

.explanation-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #667eea;
    transform: translateX(4px);
}

.feature-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.feature-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.explanation-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.tip-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.tip-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #92400e;
    line-height: 1.4;
}

/* Dark mode support for navigation explanation */
body.dark-mode .navigation-explanation {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-color: #4b5563;
}

body.dark-mode .explanation-title {
    color: #f9fafb;
}

body.dark-mode .explanation-description {
    color: #d1d5db;
}

body.dark-mode .explanation-description strong {
    color: #f9fafb;
}

body.dark-mode .feature-item {
    background: rgba(55, 65, 81, 0.7);
    border-color: rgba(75, 85, 99, 0.8);
}

body.dark-mode .feature-item:hover {
    background: rgba(55, 65, 81, 0.9);
    border-color: #667eea;
}

body.dark-mode .feature-text {
    color: #e5e7eb;
}

body.dark-mode .explanation-tip {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    border-color: #f59e0b;
}

body.dark-mode .tip-text {
    color: #fef3c7;
}

/* Responsive design for navigation explanation */
@media (max-width: 768px) {
    .explanation-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .explanation-icon {
        width: 40px;
        height: 40px;
    }
    
    .explanation-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .explanation-title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .explanation-description {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .explanation-features {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-item {
        padding: 0.375rem 0.5rem;
        justify-content: center;
    }
    
    .feature-text {
        font-size: 0.75rem;
    }
    
    .explanation-tip {
        padding: 0.5rem 0.75rem;
        text-align: left;
    }
    
    .tip-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .navigation-explanation {
        margin-bottom: 1rem;
    }
    
    .explanation-content {
        padding: 1rem;
    }
    
    .explanation-features {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }
    
    .feature-item {
        padding: 0.5rem;
        justify-content: flex-start;
    }
    
    .explanation-tip {
        flex-direction: column;
        text-align: center;
        gap: 0.375rem;
    }
    
    /* Enhanced mobile styles for custom-modern block */
    .m-portlet__head-title.custom-modern {
        font-size: 1.2rem;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 10px;
        margin-bottom: 6px;
    }
    .m-portlet__head-title.custom-modern .modern-title-icon {
        width: 24px;
        height: 24px;
    }
    .m-portlet__head-title.custom-modern .modern-title-icon svg {
        width: 24px;
        height: 24px;
    }
    .m-portlet__head-title.custom-modern .modern-title-text {
        font-size: 1.2rem;
        line-height: 1.2;
    }
} 

@media (max-width: 360px) {
    .m-portlet__head-title.custom-modern {
        font-size: 1.1rem;
        gap: 6px;
        padding: 8px 4px;
        border-radius: 8px;
        margin-bottom: 4px;
    }
    .m-portlet__head-title.custom-modern .modern-title-icon {
        width: 22px;
        height: 22px;
    }
    .m-portlet__head-title.custom-modern .modern-title-icon svg {
        width: 22px;
        height: 22px;
    }
    .m-portlet__head-title.custom-modern .modern-title-text {
        font-size: 1.1rem;
        line-height: 1.1;
    }
}




/* 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;
    }
}
