/* Hide scrollbars but keep functionality */
.no-scrollbar::-webkit-scrollbar { display: none !important; }
.no-scrollbar { -ms-overflow-style: none !important; scrollbar-width: none !important; }

/* Force kill all focus outlines and tap highlights globally */
*, *:focus, *:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Global mobile scrollbar hide for 'app-like' feel */
@media (max-width: 1024px) {
    *::-webkit-scrollbar { display: none !important; }
    * { -ms-overflow-style: none !important; scrollbar-width: none !important; }
}

/* Glass Card Style */
.glass-card {
    background: rgba(24, 24, 24, 0.85); /* Сохраняем цвет #181818 с небольшой прозрачностью */
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border-radius: 30px;
    position: relative;
    border: none;
}

/* Button Style */
.btn-custom {
    padding: 11px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-custom:active {
    transform: scale(0.96);
    filter: brightness(0.9);
}

/* ApexCharts Tooltips Customization */
.apexcharts-tooltip.apexcharts-theme-dark {
    border: none !important;
    box-shadow: none !important;
    border-radius: 16px !important;
    background: #121212 !important;
}

.apexcharts-tooltip-title {
    border-bottom: none !important;
    font-weight: 500 !important;
    background: transparent !important;
}

.apexcharts-xaxistooltip {
    border: none !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    background: #121212 !important;
    color: #fff !important;
}

/* Remove the pointer arrows for a cleaner look */
.apexcharts-xaxistooltip:before, 
.apexcharts-xaxistooltip:after {
    display: none !important;
}

.apexcharts-tooltip-marker {
    width: 8px !important;
    height: 8px !important;
}

/* Responsive Mobile Tables (Cards View) */
@media (max-width: 639px) {
    .mobile-cards-table {
        overflow-x: visible !important;
    }
    .mobile-cards-table table {
        display: block;
        width: 100%;
        padding: 0 16px;
        padding-bottom: 8px;
    }
    .mobile-cards-table thead, 
    .mobile-cards-table tbody, 
    .mobile-cards-table th, 
    .mobile-cards-table td, 
    .mobile-cards-table tr {
        display: block;
        width: 100%;
    }
    .mobile-cards-table thead {
        display: none;
    }
    .mobile-cards-table tbody {
        border-top: none !important;
    }
    .mobile-cards-table tr {
        margin-bottom: 12px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.03);
        padding: 4px 16px;
        border-top: none !important;
        border-bottom: none !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    html:not(.dark) .mobile-cards-table tr {
        background: rgba(0, 0, 0, 0.02);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }
    .mobile-cards-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0 !important;
        border: none !important;
        text-align: right;
        height: auto !important;
        width: 100% !important;
        min-height: min-content;
    }
    .mobile-cards-table td:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    html:not(.dark) .mobile-cards-table td:not(:last-child) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    .mobile-cards-table td::before {
        content: attr(data-label);
        font-size: 9px;
        color: #9ca3af;
        text-transform: uppercase;
        font-weight: 600;
        margin-right: 16px;
        text-align: left;
        flex-shrink: 0;
    }
    .mobile-cards-table td > div {
        padding: 0 !important;
        text-align: right;
        display: flex;
        justify-content: flex-end;
        align-items: flex-end !important;
        flex-grow: 1;
        width: auto !important;
    }
    /* Reduce value text sizes by 2px on mobile to make cards more compact */
    .mobile-cards-table td .text-sm {
        font-size: 12px !important;
        line-height: 16px !important;
    }
    .mobile-cards-table td .text-xs {
        font-size: 10px !important;
        line-height: 14px !important;
    }
    .mobile-cards-table td .size-6 {
        width: 20px !important;
        height: 20px !important;
    }
    .mobile-cards-table td .size-3\.5 {
        width: 12px !important;
        height: 12px !important;
    }
    .mobile-cards-table td .py-1 {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
    /* Fix divide-y conflicts */
    .mobile-cards-table tbody > tr ~ tr {
        border-top: none !important;
        margin-top: 12px !important;
    }
}
