body {
    font-family: Arial, sans-serif;
    background: rgb(18, 18, 18);
    margin: 0;
    padding: 20px;
    font-family: "Gilroy-Bold", sans-serif;
}

@font-face {
    font-family: "Gilroy-Bold";
    src: url("Gilroy-Bold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.container {
    max-width: 90%;
    margin: 0 auto;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(40, 40, 50, 0.6);
}

::-webkit-scrollbar-thumb {
    background: rgb(141, 181, 230);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(120, 160, 210);
}

h1 {
    text-align: center;
    color: rgb(200, 200, 200);
    margin-bottom: 20px;
}

.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.search-bar input {
    padding: 10px;
    width: 300px;
    border: 1px solid rgb(204, 204, 204);
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    color: rgb(200, 200, 200);
    background-color: rgb(18, 18, 18);
}

.search-bar button {
    padding: 10px 20px;
    border: none;
    background-color: rgb(0, 93, 193);
    color: white;
    font-size: 16px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: bold;
}

.inventory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: rgb(18, 18, 18);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgb(200, 200, 200);
}

.card h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px;
    color: rgb(200, 200, 200);
}

.rarity {
    font-size: 20px;
    margin-bottom: 10px;
}

.image-placeholder {
    background-color: transparent;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(136, 136, 136);
    margin-bottom: 10px;
    border-radius: 8px;
}

.image-placeholder img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.stats p {
    margin: 3px 0;
    font-size: 14px;
    color: rgb(200, 200, 200);
}

.card.blue {
    background: linear-gradient(
        135deg,
        rgb(18, 18, 18) 0%,
        rgb(18, 18, 18) 50%,
        rgb(52, 152, 219, 0.7) 100%
    );
}

.card.purple {
    background: linear-gradient(
        135deg,
        rgb(18, 18, 18) 0%,
        rgb(18, 18, 18) 50%,
        rgb(161, 81, 214, 0.7) 100%
    );
}

.card.pink {
    background: linear-gradient(
        135deg,
        rgb(18, 18, 18) 0%,
        rgb(18, 18, 18) 50%,
        rgb(236, 0, 140, 0.7) 100%
    );
}

.card.red {
    background: linear-gradient(
        135deg,
        rgb(18, 18, 18) 0%,
        rgb(18, 18, 18) 50%,
        rgb(239, 71, 58, 0.7) 100%
    );
}

.card.gold {
    background: linear-gradient(
        135deg,
        rgb(18, 18, 18) 0%,
        rgb(18, 18, 18) 50%,
        rgb(255, 210, 0, 0.7) 100%
    );
}

.card.gem-ruby {
    background: linear-gradient(
        135deg,
        rgb(18, 18, 18) 0%,
        rgb(18, 18, 18) 50%,
        rgb(255, 0, 60) 100%
    );
}

.card.gem-sapphire {
    background: linear-gradient(
        135deg,
        rgb(18, 18, 18) 0%,
        rgb(18, 18, 18) 50%,
        rgb(0, 153, 255) 100%
    );
}

.card.gem-blackpearl {
    background: linear-gradient(
        135deg,
        rgb(18, 18, 18) 0%,
        rgb(18, 18, 18) 50%,
        rgb(106, 13, 173) 100%
    );
}

.card.gem-emerald {
    background: linear-gradient(
        135deg,
        rgb(18, 18, 18) 0%,
        rgb(18, 18, 18) 50%,
        rgb(0, 255, 42) 100%
    );
}

.totals-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background-color: transparent;
    border-radius: 8px;
}

.total-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 25px;
    background-color: rgb(15, 23, 42);
    /* border: 1px solid rgb(200, 200, 200); */
    border-radius: 6px;
    width: 140px;
}

.total-box span {
    font-size: 14px;
    color: rgb(148, 163, 184);
    margin-bottom: 5px;
}

.total-box strong {
    font-size: 24px;
    color: white;
}

.wear-list {
    margin-bottom: 8px;
}

.wear-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wear-row.stats {
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wear-row:last-child {
    border-bottom: none;
}

.wear-row span {
    color: rgb(200, 200, 200);
}

.price-value {
    position: relative;
    font-weight: bold;
    color: rgb(74, 222, 128) !important;
    z-index: 1;
}

.not-possible-thiiing {
    position: relative;
    font-weight: bold;
    color: rgb(222, 74, 74) !important;
    z-index: 1;
}

.just-value {
    position: relative;
    font-weight: bold;
    color: white;
    z-index: 1;
}

.not-possible-thiiing::before,
.price-value::before,
.just-value::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: -1;
    -webkit-text-stroke: 4px rgb(0, 0, 0);
    color: transparent;
}

.wear-row.stattrak span {
    color: rgb(217, 119, 6);
}

.stattrak-label {
    margin-top: 8px;
    font-weight: bold;
    color: rgb(217, 119, 6);
}

h3 {
    color: rgb(255, 255, 255);
    font-size: 1.5rem;
    text-transform: uppercase;
    display: inline-block;
    padding-bottom: 5px;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#filtercontainer {
    position: relative;
    z-index: 100;
}

.team-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 4px;
    cursor: pointer;
}

.team-badge.both {
    background: linear-gradient(
        90deg,
        rgba(92, 158, 255, 0.2) 0%,
        rgba(255, 140, 66, 0.2) 100%
    );
    border: 1px solid rgb(141, 181, 230);
    color: rgb(141, 181, 230);
}

.team-badge.active {
    opacity: 1;
    box-shadow: 0 0 10px currentColor;
}

.custom-select {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.select-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 12px 35px 12px 12px;
    background-color: rgba(18, 18, 18, 0.9);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 6px;
    color: rgb(222, 222, 222);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.select-trigger:hover {
    border-color: rgb(141, 181, 230);
}

.select-trigger.active {
    border-color: rgb(141, 181, 230);
    box-shadow: 0 0 10px rgba(141, 181, 230, 0.3);
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background-color: rgb(28, 28, 28);
    border: 1px solid rgb(141, 181, 230);
    border-radius: 6px;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.select-dropdown.show {
    display: block;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgb(141, 181, 230);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.select-trigger.active + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.select-option {
    padding: 12px;
    color: rgb(222, 222, 222);
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(200, 200, 200, 0.1);
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    background-color: rgba(141, 181, 230, 0.2);
}

.container.disabled {
    opacity: 0;
}

.inventory-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.inventory-column {
    flex: 1;
}

.sidebar {
    background-color: rgb(28, 28, 28);
    border-radius: 12px;
    border: 1px rgba(200, 200, 200, 0.25) solid;
    width: 420px;
    position: sticky;
    top: 20px;
    transition: opacity 0.2s ease;
    opacity: 0;
    z-index: 10;
}

.roles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px 0 15px 0;
}

.role-badge {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    cursor: default;
    justify-content: space-between;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.role-badge-img {
    width: 34px;
    height: 34px;
    object-fit: cover;
}

.role-badge-name {
    font-size: 1.3rem;
    color: rgb(200, 200, 200);
    text-transform: capitalize;
    padding: 5px 10px 5px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex: 1;
}

.role-badge-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgb(28, 28, 28);
    border: 1px solid rgba(141, 181, 230, 0.4);
    border-radius: 10px;
    padding: 12px;
    width: 160px;
    text-align: center;
    z-index: 100;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.role-badge-tooltip img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 8px;
}

.role-badge-tooltip strong {
    display: block;
    color: white;
    font-size: 0.9rem;
    text-transform: capitalize;
    margin-bottom: 4px;
}

.role-badge-tooltip p {
    color: rgb(148, 163, 184);
    font-size: 0.75rem;
    margin: 0;
}

.role-badge:hover .role-badge-tooltip {
    display: block;
}

.role-badge.developer .role-badge-name {
    background:
        linear-gradient(rgb(28, 28, 28), rgb(28, 28, 28)) padding-box,
        linear-gradient(
                180deg,
                rgb(255, 255, 255) 0%,
                rgba(255, 0, 0, 0.7) 100%
            )
            border-box;
    border: 1px solid transparent;
    border-radius: 12px;
}

.role-badge.mod .role-badge-name {
    background:
        linear-gradient(rgb(28, 28, 28), rgb(28, 28, 28)) padding-box,
        linear-gradient(160deg, rgb(1, 165, 2) 0%, rgba(0, 78, 105) 100%)
            border-box;
    border: 1px solid transparent;
    border-radius: 12px;
}

.role-badge.supporter .role-badge-name {
    background:
        linear-gradient(rgb(28, 28, 28), rgb(28, 28, 28)) padding-box,
        linear-gradient(160deg, rgb(128, 0, 128) 0%, rgb(246, 104, 9) 100%)
            border-box;
    border: 1px solid transparent;
    border-radius: 12px;
}

.role-badge.artist .role-badge-name {
    background:
        linear-gradient(rgb(28, 28, 28), rgb(28, 28, 28)) padding-box,
        linear-gradient(160deg, rgb(2, 157, 242) 0%, rgb(164, 2, 188) 100%)
            border-box;
    border: 1px solid transparent;
    border-radius: 12px;
}

.role-badge.streamer .role-badge-name {
    background:
        linear-gradient(rgb(28, 28, 28), rgb(28, 28, 28)) padding-box,
        linear-gradient(160deg, rgb(252, 112, 103) 0%, rgb(123, 0, 1) 100%)
            border-box;
    border: 1px solid transparent;
    border-radius: 12px;
}

.role-badge.contributor .role-badge-name {
    background:
        linear-gradient(rgb(28, 28, 28), rgb(28, 28, 28)) padding-box,
        linear-gradient(160deg, rgb(26, 248, 232) 0%, rgb(70, 239, 113) 100%)
            border-box;
    border: 1px solid transparent;
    border-radius: 12px;
}

@media (max-width: 800px) {
    .inventory-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        order: -1;
    }
}
