/* Table container styles */
.table-container {
    margin: 20px;
    overflow-x: auto;
}

/* Table filters */
.table-filters {
    margin: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.table-filters input {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 200px;
    background-color: #f8f8f8;
    transition: all 0.3s ease;
    color: #333;
}

.table-filters input:focus {
    outline: none;
    border-color: #8b0000;
    box-shadow: 0 0 5px rgba(139, 0, 0, 0.2);
    background-color: white;
}

.table-filters input::placeholder {
    color: #888;
    font-style: italic;
}

/* Header styles */
.header-title {
    background-color: #8b0000;
    color: white;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.header-title h1 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    flex-wrap: nowrap;
}

/* Mode switch styles */
.mode-switch {
    margin-left: auto;
}

.slider {
    position: relative;
    display: flex;
    align-items: center;
    width: 160px;
    height: 35px;
    background: #ddd;
    border-radius: 18px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.slider span {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    z-index: 2;
    color: #555;
    transition: color 0.3s ease-in-out;
}

.slider .active {
    color: black;
}

.slider-toggle {
    position: absolute;
    width: 50%;
    height: 100%;
    background: white;
    border-radius: 18px;
    transition: transform 0.3s ease-in-out;
    z-index: 1;
}

.slider.season-active .slider-toggle {
    transform: translateX(100%);
}

/* Top performers section */
.top-performers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    padding: 20px;
    background-color: lightgray;
    border-radius: 10px;
}

.tier-performer {
    width: 300px;
    height: 120px;
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: white;
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 10px;
    height: 24px;
}

.tier-label {
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    color: white;
}

.tier-chevrons {
    display: flex;
    gap: 2px;
    color: white;
}

.chevron {
    font-size: 12px;
    line-height: 1;
}

.performer-content {
    flex: 1;
    display: flex;
    padding: 10px;
    gap: 15px;
    align-items: center;
}

.performer-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.performer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.performer-name {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.performer-title {
    font-size: 12px;
    opacity: 0.8;
    color: white;
}

.performer-stats {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

/* Tier-specific styles */
.tier-master {
    background: linear-gradient(to right, #222 0%, #222 97%, rgba(139, 0, 0, 0.8) 97%, rgba(170, 0, 0, 0.8) 100%);
}

.tier-master .tier-header {
    background-color: rgba(139, 0, 0, 0.8);
}

.tier-gold {
    background: linear-gradient(to right, #222 0%, #222 97%, rgba(218, 165, 32, 0.8) 97%, rgba(255, 215, 0, 0.8) 100%);
}

.tier-gold .tier-header {
    background-color: rgba(218, 165, 32, 0.8);
}

.tier-silver {
    background: linear-gradient(to right, #222 0%, #222 97%, rgba(169, 169, 169, 0.8) 97%, rgba(192, 192, 192, 0.8) 100%);
}

.tier-silver .tier-header {
    background-color: rgba(169, 169, 169, 0.8);
}

.tier-bronze {
    background: linear-gradient(to right, #222 0%, #222 97%, rgba(205, 133, 63, 0.8) 97%, rgba(210, 105, 30, 0.8) 100%);
}

.tier-bronze .tier-header {
    background-color: rgba(205, 133, 63, 0.8);
}

/* Weapon icon styles */
.weapon-icon-darkgray {
    filter: invert(85%) sepia(0%) saturate(0%) hue-rotate(153deg) brightness(90%) contrast(92%)
            drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));
}

/* Navigation buttons */
.arrow-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
    color: white;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.arrow-button::before {
    content: "❮";
    font-size: 1.5rem;
}

#next-btn::before {
    content: "❯";
}

.arrow-button::after {
    content: attr(data-tooltip);
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.8rem;
    position: absolute;
    bottom: -25px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.arrow-button:hover::after {
    visibility: visible;
    opacity: 1;
}
