.search-container {
    position: relative;
    width: 350px;
    display: flex;
    align-items: center;
}

.search-container .form-control {
    border-radius: 20px;
    padding: 0.625rem 1rem;
    padding-right: 35px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.search-container .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.search-input {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    width: 100%;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.player-card {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.player-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Format button groups styling */
.search-button-container {
    min-width: 140px;
}

.search-button-container .btn {
    flex: 1;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.15s ease;
    border-width: 1.5px;
    font-size: 0.8rem;
}

.search-button-container .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Player list card button groups - simple and clean */
.card .btn-group {
    justify-content: center;
}

.card .btn-group .btn {
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    transition: all 0.2s ease;
}

.card .btn-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Clean button styling for format selection */
.btn-outline-primary, .btn-outline-secondary {
    font-weight: 500;
}

.btn-outline-primary:hover, .btn-outline-secondary:hover {
    transform: translateY(-1px);
}

.badge {
    font-weight: 500;
    padding: 0.5em 1em;
    margin-right: 0.5rem;
}

.player-info {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.player-info span {
    margin-right: 1rem;
}

/* Range slider styling - merged from range-slider.css */
.multi-range {
    position: relative;
    height: 30px;
}

.multi-range input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    appearance: none;
    height: 2px;
    background: none;
}

.multi-range input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
}

.multi-range input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
}

/* Additional range slider styles */
.range-container {
    position: relative;
    height: 40px;
    padding-top: 8px;
}

.range-container input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: all;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #e9ecef;
    outline: none;
}

.range-container input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
    z-index: 3;
    position: relative;
    border: 2px solid white;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.range-container input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
    z-index: 3;
    position: relative;
    border: 2px solid white;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* Switch styling */
.form-check-input {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-switch .form-check-input {
    width: 2.5em;
    margin-left: -2.8em;
}

.form-check-label {
    color: #6c757d;
    margin-left: 0.5rem;
}

.small {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Add styles for search functionality */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-results .list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 15px;
    transition: background-color 0.2s ease;
}

.search-results .list-group-item:last-child {
    border-bottom: none;
}

.search-results .list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.player-search-dropdown {
    z-index: 1050;
}

.search-button-container {
    min-width: 140px;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
    margin-right: 2rem;
    color: #2563eb;
}

.navbar-nav {
    gap: 0.5rem;
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    color: #4a5568;
}

.nav-link.active {
    color: #2563eb !important;
}

.htmx-indicator{
    opacity:0;
    transition: opacity 500ms ease-in;
}
.htmx-request .htmx-indicator{
    opacity:1;
}
.htmx-request.htmx-indicator{
    opacity:1;
}

/* Custom table highlight - between table-light and table-info */
.table-highlight {
    background-color: rgba(13, 202, 240, 0.08) !important;
}

/* Custom table highlight for percentile columns - subtle green */
.table-highlight-percentile {
    background-color: rgba(25, 135, 84, 0.08) !important;
}

/* Custom table highlight for runs percentile columns - subtle purple */
.table-highlight-runs-percentile {
    background-color: rgba(156, 39, 176, 0.08) !important;
}

/* Custom table highlight for balls percentile columns - subtle orange */
.table-highlight-balls-percentile {
    background-color: rgba(255, 120, 5, 0.08) !important;
}