#scrollable_content {
    scrollbar-gutter: stable !important;
    overflow-y: auto !important;
}

#scrollable_content::-webkit-scrollbar {
    width: 6px;
}

#scrollable_content::-webkit-scrollbar-track {
    background: transparent;
}

#scrollable_content::-webkit-scrollbar-thumb {
    background: rgba(var(--kt-text-muted), 0.2);
    border-radius: 10px;
}

html, body {
    height: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.point-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    min-width: 35px;
    line-height: 1;
}

.p-gray-1  { background: #f8fafc; color: #5f728b; border: 1px solid #f1f5f9; }
.p-gray-2  { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.p-lblue   { background: #f0f9ff; color: #1b7cb1; border: 1px solid #e0f2fe; }
.p-dblue   { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.p-lred    { background: #fff1f2; color: #d44267; border: 1px solid #ffe4e6; }
.p-dred    { background: #ffe4e6; color: #be123c; border: 1px solid #fecaca; }
.p-lorange { background: #fff7ed; color: #e0822a; border: 1px solid #ffedd5; }
.p-dorange { background: #ffedd5; color: #c2640c; border: 1px solid #fed7aa; }
.p-purple  { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }

#map-filters .kt-badge {
    cursor: pointer;
    padding: 0.5rem 0.75rem !important;
    height: auto !important;
}

#toggle-all-switch, 
.map-filter-item {
    user-select: none;
    -webkit-user-select: none;
}

input.kt-switch:disabled {
    cursor: not-allowed;
}

.map-filters-loading .map-filter-item {
    opacity: 0.7;
    cursor: wait !important;
}

button, .kt-btn {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hero-bg {
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/media/images/2600x1200/bg-1-dark.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .1;
    z-index: 0;
}

.dark .hero-bg::before {
    opacity: 1;
}

.hero-bg > * {
    position: relative;
    z-index: 1;
}

.kt-card-table.relative {
    position: relative;
}

#table-loader {
    top: 44px; 
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto; 
    z-index: 50;
    background-color: rgba(var(--kt-background), 0.6);
    backdrop-filter: blur(1px);
    transition: opacity 0.15s ease-in-out;
}

#table-loader.hidden {
    opacity: 0;
    display: none !important;
}

.kt-card-table.is-loading {
    min-height: 150px;
}

.is-loading #table-body {
    opacity: 0.3;
    pointer-events: none;
    user-select: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

#table-loader.flex {
    opacity: 1;
}

#pagination-container {
    transition: opacity 0.2s ease, pointer-events 0.2s ease;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

#playerlist_table {
    table-layout: fixed !important;
    width: 100% !important;
}

#playerlist_table th:nth-child(3),
#playerlist_table td:nth-child(3) {
    width: 50% !important;
    min-width: 50% !important;
    word-break: break-all;
}

@media (max-width: 868px) {
    #playerlist_table {
        min-width: 900px;
    }
}

#trick_table {
    table-layout: fixed !important;
    width: 100% !important;
}

#trick_table th:nth-child(3),
#trick_table td:nth-child(3) {
    width: 25% !important;
    min-width: 25% !important;
    word-break: break-all;
}

@media (max-width: 868px) {
    #trick_table {
        min-width: 900px;
    }
}

tr.cursor-pointer {
    user-select: none;
}

#playerlist_table tr.cursor-pointer {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}