/* Colorful Modern Table Styles */
#coinmarketcal {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 32px rgba(0,0,0,0.10);
    font-size: 16px;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    margin-top: 32px;
}

#coinmarketcal thead th, 
table.dataTable thead th {
    /* Blue gradient background */
    background: linear-gradient(90deg, #185a9d 0%, #43cea2 100%) !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 12px 12px 0 0;
    padding: 18px 24px;
    text-align: left;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    box-shadow: 0 2px 8px rgba(67, 206, 162, 0.08);
    transition: background 0.2s, color 0.2s;
}

#coinmarketcal thead th .icon, 
table.dataTable thead th .icon {
    font-size: 1.3em;
    vertical-align: middle;
    margin-right: 8px;
    color: #6a11cb;
}

#coinmarketcal thead th:hover, 
table.dataTable thead th:hover {
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%) !important;
    color: #fff !important;
    cursor: pointer;
    text-shadow: 0 2px 12px rgba(0,0,0,0.22);
}

#coinmarketcal tbody tr {
    transition: background 0.2s;
}

#coinmarketcal tbody tr:hover {
    background: linear-gradient(90deg, #e0c3fc 0%, #8ec5fc 100%);
}

#coinmarketcal td {
    padding: 16px 24px;
    border-bottom: 1px solid #e3e8f0;
    vertical-align: middle;
    color: #333;
    font-style: italic;
    background: none;
}

#coinmarketcal tr:last-child td {
    border-bottom: none;
}

/* Special style for first column (Symbol) */
#coinmarketcal td:first-child {
    background: linear-gradient(90deg, #ffe259 0%, #ffa751 100%);
    color: #6a11cb;
    font-weight: bold;
    font-size: 18px;
    font-style: italic;
    border-left: 6px solid #6a11cb;
    box-shadow: 2px 0 12px rgba(255, 215, 0, 0.08);
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.12);
    border-radius: 8px 0 0 8px;
}

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

.dataTables_wrapper .dataTables_length select {
    border-radius: 16px;
    border: 1.5px solid #ffd200;
    padding: 6px 16px;
    background: #fffbe7;
    color: #333;
    font-size: 15px;
    margin-left: 8px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.dataTables_wrapper .dataTables_length select:focus {
    border: 1.5px solid #f7971e;
    box-shadow: 0 2px 8px rgba(247,151,30,0.08);
}

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

/* Modern Search Block */
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 18px;
    float: right;
    position: relative;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    max-width: 400px;
}

/* Custom search wrapper for icon inside input */
.search-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-wrapper input[type="search"] {
    border-radius: 24px;
    border: 1.5px solid #ffd200;
    padding: 8px 44px 8px 44px; /* left padding for icon */
    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);
}

.search-wrapper input[type="search"]:focus {
    border: 1.5px solid #f7971e;
    background: #fff;
    box-shadow: 0 2px 8px rgba(247,151,30,0.08);
}

.search-wrapper .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    color: #f7971e;
    z-index: 2;
}

.search-wrapper #clear-search {
    margin-left: 8px;
    border: none;
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    border-radius: 24px;
    padding: 8px 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(221,36,118,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    outline: none;
    display: flex;
    align-items: center;
}

.search-wrapper #clear-search:hover, .search-wrapper #clear-search:focus {
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(67,206,162,0.15);
    transform: translateY(-2px) scale(1.04);
}

/* Highlight search results */
.dataTables_wrapper .highlight {
    background-color: #fff3cd !important;
    color: #d63384 !important;
    font-weight: bold;
    border-radius: 4px;
    padding: 2px 4px;
}

/* --- Custom m-portlet Modern Card Styles --- */
.m-portlet.custom-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(106,17,203,0.10), 0 1.5px 15px 1px rgba(69, 65, 78, 0.08);
    border: none;
    overflow: hidden;
    margin-top: 32px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.m-portlet.custom-modern:hover {
    box-shadow: 0 16px 48px rgba(106,17,203,0.18), 0 3px 30px 2px rgba(69, 65, 78, 0.12);
    transform: translateY(-2px) scale(1.01);
}

.m-portlet__head.custom-modern {
    background: linear-gradient(90deg, #e0eafc 0%, #cfdef3 100%);
    color: #4a4e69;
    padding: 32px 32px 18px 32px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 2px 12px rgba(106,17,203,0.08), 0 1.5px 15px 1px rgba(69, 65, 78, 0.04);
    font-family: 'Poppins', 'Segoe UI', 'Roboto', Arial, sans-serif;
    letter-spacing: 0.5px;
}

.m-portlet__head-title.custom-modern {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #5f6caf;
    font-family: 'Poppins', 'Segoe UI', 'Roboto', Arial, sans-serif;
}

.m-portlet__head-title.custom-modern .icon {
    font-size: 2.8rem;
    margin-right: 14px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 50%;
    padding: 12px;
    color: #6a11cb;
    box-shadow: 0 2px 8px rgba(106,17,203,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-portlet__head-desc.custom-modern {
    font-size: 1.15rem;
    font-weight: 400;
    color: #7b8fa1;
    margin-top: 6px;
    font-family: 'Poppins', 'Segoe UI', 'Roboto', Arial, sans-serif;
    letter-spacing: 0.2px;
}

.m-portlet__body.custom-modern {
    padding: 32px 32px 32px 32px;
    background: transparent;
}

/* Modern Update All Data Button Styles */
.modern-update-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 32px;
    padding: 14px 32px;
    box-shadow: 0 4px 16px rgba(67,206,162,0.10);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    outline: none;
    position: relative;
    min-width: 180px;
}

.modern-update-btn:disabled,
.modern-update-btn[aria-busy="true"] {
    opacity: 0.7;
    cursor: not-allowed;
}

.modern-update-btn:hover:not(:disabled):not([aria-busy="true"]) {
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    box-shadow: 0 8px 24px rgba(221,36,118,0.12);
    transform: translateY(-2px) scale(1.03);
}

.modern-update-btn .spinner {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

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

/* --- Custom: DataTables Sorting Icons Visibility & Color --- */
#coinmarketcal thead th,
table.dataTable thead th {
    position: relative;
}

/* For DataTables 1.x and 2.x (legacy and new class names) */
#coinmarketcal thead th.sorting:after,
#coinmarketcal thead th.sorting_asc:after,
#coinmarketcal thead th.sorting_desc:after,
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after,
#coinmarketcal thead th.dt-orderable-asc .dt-column-order:after,
#coinmarketcal thead th.dt-orderable-desc .dt-column-order:after,
#coinmarketcal thead th.dt-ordering-asc span.dt-column-order:after,
#coinmarketcal thead th.dt-ordering-desc span.dt-column-order:after,
table.dataTable thead th.dt-orderable-asc .dt-column-order:after,
table.dataTable thead th.dt-orderable-desc .dt-column-order:after,
table.dataTable thead th.dt-ordering-asc span.dt-column-order:after,
table.dataTable thead th.dt-ordering-desc span.dt-column-order:after {
    color: #111 !important; /* Black color for visibility */
    text-shadow: 0 1px 6px rgba(255,255,255,0.7), 0 0 2px #fff; /* Extra contrast over gradients */
    z-index: 99999 !important; /* Very high z-index to ensure visibility */
    position: absolute !important;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    pointer-events: none;
    opacity: 1 !important;
}

/* Optionally, increase z-index for th as well to ensure stacking context */
#coinmarketcal thead th,
table.dataTable thead th {
    z-index: 9999;
}

/* --- Fancy Update All Data Button Styles --- */
.modern-update-btn.modern-update-btn-fancy {
    background: linear-gradient(270deg, #ff512f, #f7971e, #ffd200, #43cea2, #185a9d, #6a11cb, #ff512f);
    background-size: 1400% 1400%;
    animation: gradientFlow 8s ease infinite;
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    border: none;
    border-radius: 40px;
    padding: 16px 38px;
    box-shadow: 0 6px 24px 0 rgba(255, 81, 47, 0.18), 0 1.5px 8px 0 rgba(67, 206, 162, 0.10);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.1s;
    outline: none;
    position: relative;
    min-width: 200px;
    letter-spacing: 0.7px;
    text-shadow: 0 2px 8px rgba(255,255,255,0.12);
    overflow: hidden;
}

@keyframes gradientFlow {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

.modern-update-btn.modern-update-btn-fancy:focus {
    box-shadow: 0 0 0 4px #ffd20055, 0 6px 24px 0 rgba(255, 81, 47, 0.18);
}

.modern-update-btn.modern-update-btn-fancy:hover:not(:disabled):not([aria-busy="true"]) {
    box-shadow: 0 8px 32px 0 rgba(221,36,118,0.18), 0 2px 12px 0 rgba(67,206,162,0.12);
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.08);
}

.modern-update-btn.modern-update-btn-fancy:active {
    animation: bounce 0.3s;
    transform: scale(0.97);
}

@keyframes bounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.08); }
    50% { transform: scale(0.97); }
    100% { transform: scale(1); }
}

/* Confetti effect container */
.modern-update-btn-fancy .confetti {
    pointer-events: none;
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    z-index: 2;
} 
