/* Competition Tabs */
.custom-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.custom-tab {
    display: inline-block;
    min-width: 50px;
    padding: 8px 18px;
    border: none !important;
    background: #f3f6fa !important;
    color: #1976d2 !important;
    font-weight: 600;
    font-size: 18px;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    position: relative;
    box-shadow: none !important;
    outline: none !important;
    white-space: normal;
    word-break: break-word;
    max-width: 140px;
    text-align: center;
}
.custom-tab.selected, .custom-tab.active {
    background: #1976d2 !important;
    color: #fff !important;
    font-weight: bold;
    border: none !important;
    box-shadow: none !important;
}
.custom-tab::after, .custom-tab.selected::after, .custom-tab.active::after {
    display: none !important;
}
.custom-tab:hover:not(.selected):not(.active) {
    background: #e3eafc !important;
    color: #1976d2 !important;
}
.custom-tabs .custom-tab {
    border: none !important;
    background: #f3f6fa;
    color: #1976d2;
}
.custom-tabs .custom-tab.selected, .custom-tabs .custom-tab.active {
    background: #1976d2;
    color: #fff;
    border: none !important;
}

/* Fotos button */
.custom-fotos-btn {
    border: 1.5px solid #1976d2;
    background: #fff;
    color: #1976d2;
    border-radius: 8px;
    padding: 7px 18px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s, color 0.2s;
}
.custom-fotos-btn:hover {
    background: #1976d2;
    color: #fff;
}

/* Filters (Combobox) */
.custom-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}
.custom-combobox {
    position: relative;
    min-width: 150px;
}
.custom-combobox-btn {
    width: 100%;
    background: #fff;
    border: 1.5px solid #bfc8d6;
    border-radius: 6px;
    padding: 8px 36px 8px 16px;
    font-size: 15px;
    color: #1976d2;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: border 0.2s, box-shadow 0.2s;
}
.custom-combobox-btn:after {
    content: '\25BC';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #1976d2;
    pointer-events: none;
}
.custom-combobox-btn.open, .custom-combobox-btn:focus {
    border-color: #1976d2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
}
.custom-combobox-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    width: 100%;
    background: #fff;
    border: 1.5px solid #1976d2;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.10);
    z-index: 100;
    padding: 0;
}
.custom-combobox.open .custom-combobox-dropdown {
    display: block;
}
.custom-combobox-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.custom-combobox-dropdown li {
    padding: 10px 18px;
    cursor: pointer;
    color: #1976d2;
    font-size: 15px;
    transition: background 0.2s;
}
.custom-combobox-dropdown li:hover, .custom-combobox-dropdown li.selected {
    background: #e3eafc;
    color: #1976d2;
}

/* Search input */
.custom-search-group {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.custom-search-icon {
    background: #fff;
    border: 1.5px solid #bfc8d6;
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 8px 12px;
    color: #1976d2;
    font-size: 18px;
}
.custom-search-input {
    flex: 1;
    border: 1.5px solid #bfc8d6;
    border-radius: 0 6px 6px 0;
    padding: 8px 14px;
    font-size: 15px;
    outline: none;
}
.custom-search-input:focus {
    border-color: #1976d2;
}

/* Results Table */
#tbodyResults .result-name {
    display: inline-block;
    max-width: 340px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    font-size: 1.1em;
}
@media (max-width: 600px) {
    #tbodyResults .result-name { max-width: 300px; }
}
#tbodyResults > div, #tbodyResults .result-row {
    transition: background 0.2s;
}
#tbodyResults > div:hover, #tbodyResults .result-row:hover {
    background: #f0f4ff !important;
}

/* Result List Modern Styles */
#tbodyResults {
    margin-top: 10px;
}
.result-row {
    display: flex;
    flex-direction: column;
    padding: 18px 0 12px 0;
    border-bottom: 1px solid #e5e8ef;
    background: #fff;
    transition: background 0.2s;
    cursor: pointer;
}
.result-row:hover {
    background: #f0f4ff !important;
}
.result-name {
    font-size: 1.15em;
    font-weight: 600;
    color: #3a3a3a;
    margin-bottom: 2px;
    max-width: 340px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.result-details {
    font-size: 0.98em;
    color: #7a7a7a;
    margin-bottom: 2px;
}
.result-position {
    font-size: 0.98em;
    color: #1976d2;
    font-weight: 500;
    margin-bottom: 2px;
}
.result-time {
    font-size: 1.08em;
    color: #222;
    font-weight: bold;
}
@media (max-width: 600px) {
    .result-name { max-width: 160px; }
}

/* Responsive adjustments for competitions and Fotos */
@media (max-width: 700px) {
    .d-flex.justify-content-between.align-items-center.mb-3[style] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
    }
    .custom-tabs {
        margin-bottom: 8px;
    }
    .custom-fotos-btn {
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }
    .custom-tab {
        padding: 8px 8px;
        max-width: 90px;
        font-size: 15px;
    }
}