body {
    font-family: 'Inter', sans-serif;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.fixed-header-container {
    position: relative;
    overflow-y: auto;
    max-height: 80vh;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}

thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

th {
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

tbody tr:hover {
    cursor: pointer;
}

.fixed-column-left {
    position: sticky;
    z-index: 5;
    background-color: inherit;
}

.fixed-column-left-1 {
    left: 0;
}

.fixed-column-left-2 {
    z-index: 4;
}

th.fixed-column-left {
    z-index: 11 !important;
}

th.fixed-column-left-2 {
    z-index: 10 !important;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding-top: 0;
    padding-bottom: 0;
}

.accordion-item.active .accordion-content {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.loading-ring {
    width: 24px;
    height: 24px;
    border: 3px solid #6b7280;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #3b82f6 transparent transparent transparent;
}

@keyframes ring {
    0% {
        transform: rotate(0deg);
    }

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

#navMenu {
    will-change: transform;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.35);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(100, 100, 100, 0.55);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 100, 100, 0.35) transparent;
}

@media (max-width: 899px) {
    .fixed-header-container {
        max-height: calc(100vh - 180px);
    }

    th,
    td {
        padding: 10px 12px;
    }
}

@media (min-width: 900px) {
    .table-container {
        border-radius: 1rem;
    }
}

.page-title {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 2.25rem;
}

.card-container {
    background-color: white;
    border-radius: 1rem;
    box-shadow:
        0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
    overflow: hidden;
}

.dark .card-container {
    background-color: rgb(31 41 55);
}

/* Handicap table highlighting */

/* Handicap table highlighting */

.handicap-cell-highlight {
}

.handicap-intersection-highlight {
    outline: 3px solid rgba(37, 99, 235, 0.95);
    outline-offset: -3px;
    font-weight: 900;
    position: relative;
    z-index: 30;
}

.handicap-range-high.handicap-cell-highlight {
    background-color: rgb(191 219 254) !important;
}

.dark .handicap-range-high.handicap-cell-highlight {
    background-color: rgb(30 64 175 / 0.75) !important;
}

.handicap-range-mid.handicap-cell-highlight {
    background-color: rgb(187 247 208) !important;
}

.dark .handicap-range-mid.handicap-cell-highlight {
    background-color: rgb(22 101 52 / 0.75) !important;
}

.handicap-range-low.handicap-cell-highlight {
    background-color: rgb(253 230 138) !important;
}

.dark .handicap-range-low.handicap-cell-highlight {
    background-color: rgb(146 64 14 / 0.75) !important;
}