@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(125, 125, 125, 0.1);
    border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgba(125, 125, 125, 0.3);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #323232;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    margin-bottom: 10px;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background-color: #ffc107;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 23px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background-image: url('https://img.icons8.com/material-outlined/344/average-2.png');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.form-control {
    background-color: #242424 !important;
    color: white;
}

.bg-color {
    background-color: #0e0e0e;
}

.bg-nav {
    background-color: #161616 !important;
}

.btn-primary {
    background-color: #242424 !important;
    border: 1px solid #363636 !important;
}

.btn-primary:hover {
    background-color: #292929 !important;
}

.btn-primary:active {
    background-color: #323232 !important;
}

.active-side {
    background-color: #323232 !important;
    border: 1px solid #484848 !important;
}

.weapon-img {
    position: relative;
    width: 70%;
}

.modal .weapon-img {
    width: 100%;
}

.weapon_card {
    transition: all cubic-bezier(0.165, 0.84, 0.44, 1) .3s;
}

.weapon-skin-title {
    position: relative;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sideBtnImg {
    filter: invert();
}

.sideBtnI {

}

.card-common {
    border-color: rgb(129, 140, 154) !important;
    color: rgb(129, 140, 154);
    background: linear-gradient(135deg, rgba(129, 140, 154, 0.03), rgba(22, 22, 22, 0.6), rgba(129, 140, 154, 0.15));
}


.card-uncommon {
    border-color: rgb(94, 152, 217) !important;
    color: rgb(94, 152, 217);
    background: linear-gradient(135deg, rgba(94, 152, 217, 0.03), rgba(22, 22, 22, 0.6), rgba(94, 152, 217, 0.15));
}

.card-rare {
    border-color: rgb(75, 105, 205) !important;
    color: rgb(75, 105, 205);
    background: linear-gradient(135deg, rgba(75, 105, 205, 0.05), rgba(22, 22, 22, 0.6), rgba(75, 105, 205, 0.23));
}

.card-mythical {
    border-color: rgb(136, 71, 255) !important;
    color: rgb(136, 71, 255);
    background: linear-gradient(135deg, rgba(136, 71, 255, 0.05), rgba(22, 22, 22, 0.6), rgba(136, 71, 255, 0.2));
}

.card-legendary {
    border-color: rgb(211, 44, 230) !important;
    color: rgb(211, 44, 230);
    background: linear-gradient(135deg, rgba(211, 44, 230, 0.05), rgba(22, 22, 22, 0.6), rgba(211, 44, 230, 0.3));
}

.card-ancient {
    border-color: rgb(235, 75, 75) !important;
    color: rgb(235, 75, 75);
    background: linear-gradient(135deg, rgba(235, 75, 75, 0.02), rgba(22, 22, 22, 0.6), rgba(235, 75, 75, 0.15));
}

.card-gold {
    border-color: rgb(202, 171, 5) !important;
    color: rgb(202, 171, 5);
    background: linear-gradient(135deg, rgba(202, 171, 5, 0.02), rgba(22, 22, 22, 0.6), rgba(202, 171, 5, 0.15));
}

.card-contraband {
    border-color: rgb(228, 174, 57) !important;
    color: rgb(228, 174, 57);
    background: linear-gradient(135deg, rgba(228, 174, 57, 0.02), rgba(22, 22, 22, 0.6), rgba(228, 174, 57, 0.15));
}

.weapon-card {
    position: relative;
    transition: all cubic-bezier(0.165, 0.84, 0.44, 1), .3s;
    cursor: pointer;
}

.weapon-card:hover {
    backdrop-filter: contrast(120%);
}

.active-card {
    margin: -2px;
    border: 2px solid rgba(228, 174, 57);
}

.active-card > .settings {
    visibility: visible;
    opacity: 1;
}

.profile-bg {
    color: #fff;
    background: #242424;
    border: 1px solid #363636;
}

li {
    list-style-type: none;
}

.parent-weapon-card {
    position: relative;
}

.settings {
    height: 48px;
    width: 48px;
    position: absolute;
    right: 0;
    margin: 8px;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transition: all cubic-bezier(0.165, 0.84, 0.44, 1) .3s;
    border: none;
}

.revert {
    height: 48px;
    width: 48px;
    position: absolute;
    right: 0;
    transition: all cubic-bezier(0.165, 0.84, 0.44, 1) .3s;
    border: none;
    background-color: transparent;
}

.revert:hover {
    opacity: 0.7;
}

.loading-card {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    transition: all cubic-bezier(0.165, 0.84, 0.44, 1) .3s;
    backdrop-filter: blur(15px);
}

.settings:hover {
    background-color: rgb(179, 179, 179) !important;
}

.bg-opacity {
    background-color: rgba(0, 0, 0, 0.3);
}

.text-roboto {
    font-family: 'Roboto Condensed', sans-serif;
}

.weapon-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.weapon-card img {
    transition: transform 0.3s ease;
}

.weapon-card:hover img {
    transform: scale(1.1);
}

.weapon-skin-title {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    padding-bottom: 10px;
}

.weapon-skin-name {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Add transition for smooth effect */
    opacity: 1;
    padding-bottom: 10px;
}

.weapon-card:hover .weapon-skin-title {
    transform: translateY(-30px);
    opacity: 0.8;
}

.weapon-card:hover .weapon-skin-name {
    transform: translateY(-30px);
    opacity: 0.8;
}

.weapon-card:hover .button-skin {
    opacity: 1;
    transform: translateY(0);
}

.active-card .weapon-skin-title {
    transform: translateY(-30px);
    opacity: 0.8;
}

.active-card .weapon-skin-name {
    transform: translateY(-30px);
    opacity: 0.8;
}

.active-card .button-skin {
    opacity: 1;
    transform: translateY(0);
}

.active-card img {
    transform: scale(1.1);
}

.button-skin {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 5px 0;
    color: white;
    font-weight: bold;
    opacity: 0;
    transform: translateY(50px);
}

.card-common .button-skin {
    background: linear-gradient(135deg, rgba(129, 140, 154, 0.1), rgba(22, 22, 22, 0.8), rgba(129, 140, 154, 0.2));
    border-bottom: solid 5px rgba(129, 140, 154, 0.5);
}

.card-uncommon .button-skin {
    background: linear-gradient(135deg, rgba(94, 152, 217, 0.1), rgba(22, 22, 22, 0.8), rgba(94, 152, 217, 0.2));
    border-bottom: solid 5px rgba(94, 152, 217, 0.5);
}

.card-rare .button-skin {
    background: linear-gradient(135deg, rgba(75, 105, 205, 0.1), rgba(22, 22, 22, 0.8), rgba(75, 105, 205, 0.2));
    border-bottom: solid 5px rgba(75, 105, 205, 0.5);
}

.card-mythical .button-skin {
    background: linear-gradient(135deg, rgba(136, 71, 255, 0.1), rgba(22, 22, 22, 0.8), rgba(136, 71, 255, 0.2));
    border-bottom: solid 5px rgba(136, 71, 255, 0.5);
}

.card-legendary .button-skin {
    background: linear-gradient(135deg, rgba(211, 44, 230, 0.1), rgba(22, 22, 22, 0.8), rgba(211, 44, 230, 0.2));
    border-bottom: solid 5px rgba(211, 44, 230, 0.5);
}

.card-ancient .button-skin {
    background: linear-gradient(135deg, rgba(235, 75, 75, 0.1), rgba(22, 22, 22, 0.8), rgba(235, 75, 75, 0.2));
    border-bottom: solid 5px rgba(235, 75, 75, 0.5);
}

.card-gold .button-skin {
    background: linear-gradient(135deg, rgba(202, 171, 5, 0.1), rgba(22, 22, 22, 0.8), rgba(202, 171, 5, 0.2));
    border-bottom: solid 5px rgba(202, 171, 5, 0.5);
}


.card-contraband .button-skin {
    background: linear-gradient(135deg, rgba(228, 174, 57, 0.1), rgba(22, 22, 22, 0.8), rgba(228, 174, 57, 0.2));
    border-bottom: solid 5px rgba(228, 174, 57, 0.5);
}


.img-block {
    padding: 40px;
    height: 180px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.button-skin:hover {
    cursor: pointer;
}

/* Common Card - Darker on Hover or Active */
.card-common:hover, .card-common.active-card {
    color: white;
}

/* Uncommon Card - Darker on Hover or Active */
.card-uncommon:hover, .card-uncommon.active-card {
    color: white;
}

/* Rare Card - Darker on Hover or Active */
.card-rare:hover, .card-rare.active-card {
    color: white;
}

/* Mythical Card - Darker on Hover or Active */
.card-mythical:hover, .card-mythical.active-card {
    color: white;
}

/* Legendary Card - Darker on Hover or Active */
.card-legendary:hover, .card-legendary.active-card {
    color: white;
}

/* Ancient Card - Darker on Hover or Active */
.card-ancient:hover, .card-ancient.active-card {
    color: white;
}

/* Gold Card - Darker on Hover or Active */
.card-gold:hover, .card-gold.active-card {
    color: white;
}

/* Contraband Card - Darker on Hover or Active */
.card-contraband:hover, .card-contraband.active-card {
    color: white;
}

/* Important part */

#skins .modal-dialog {
    overflow-y: initial !important
}

#skins .modal-body {
    height: 80vh;
    overflow: hidden;
    overflow-y: auto;
}

.toast-top-center {
    max-width: 450px;
    text-align: center;
}


.float-slider, .pattern-slider {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right,
    rgba(202, 171, 5, 1), /* Gold */ rgba(94, 152, 217, 1), /* Uncommon */ rgba(75, 105, 205, 1), /* Rare */ rgba(202, 171, 5, 0.7)); /* Faded Gold */
    -webkit-appearance: none;
    margin: 0.5rem 0;
}

.float-slider::-webkit-slider-thumb, .pattern-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #ffc107; /* Yellow */
    border-radius: 50%;
    cursor: pointer;
}

.weapon-preview {
    background-color: #0e0e0e; /* Dark background */
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 1rem;
}

.weapon-preview img {
    max-width: 100%;
    height: auto;
}

.search-bar {
    background-color: #0e0e0e; /* Dark background */
    border: none;
    color: white; /* Text white */
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.slot {
    width: 50px;
    height: 50px;
    background-color: #161616; /* Dark background */
    border: 2px solid #161616; /* Border */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 0.5rem;
}

.slot:hover {
    border-color: #202020; /* Slightly lighter border */
}

.slot.active {
    border-color: #202020; /* Active border color */
    box-shadow: 0 0 10px rgba(202, 171, 5, 0.5); /* Gold shadow */
}

.slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.remove-item {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    background-color: #ffc107; /* Yellow */
    color: white; /* White text */
    border: none;
    border-radius: 50%;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    display: none;
}

.slot:hover .remove-item {
    display: block;
}

.small-input {
    padding: 0.25rem 0.5rem;
    width: 135px;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.875rem;
    background-color: #242424; /* Slightly lighter dark */
    color: white;
}

.small-input:focus {
    background-color: #323232; /* Focus background */
    color: white;
    border-color: #ffc107; /* Yellow border */
    box-shadow: none;
}

.float-btn {
    background-color: #0e0e0e; /* Dark button background */
    border: 1px solid #161616; /* Dark border */
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.float-btn:hover, .float-btn.active {
    background-color: #ffc107; /* Yellow hover */
    border-color: #ffc107; /* Yellow border */
    color: white;
}

.stattrak-toggle {
    background-color: transparent;
    border: 1px solid #eb4b4b; /* Danger red */
    color: #eb4b4b; /* Danger red text */
    padding: 0.5rem;
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.stattrak-toggle.active {
    border: 1px solid #198754; /* Success green */
    color: #198754; /* Success green text */
}

.spinner {
    border: 4px solid #f3f3f3; /* Light gray */
    border-top: 4px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.sticker-card {
    display: grid;
    height: 120px;
    justify-items: center;
    align-items: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border-bottom: solid 5px rgba(129, 140, 154, 0.2); /* Common */
    background: linear-gradient(to top left, rgba(129, 140, 154, 0.1) 0%, #161616 100%); /* Common gradient */
    overflow: hidden;
}

/* Additional classes have been updated similarly. */

.sticker-frame {
    display: flex;
    height: 100%;
    width: 100%;
    position: relative;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.sticker-frame img {
    max-width: 80%;
    max-height: 80%;
    transition: all 0.3s ease;
    opacity: 0;
}

.sticker-frame.loaded img {
    opacity: 0.9;
}

.sticker-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.sticker-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 8px;
    background: rgba(22, 22, 22, 0.8); /* Background matching main-bg */
    color: #fff; /* Text color set to white */
    transition: all 0.3s ease;
}

.sticker-card:hover .sticker-frame img {
    transform: scale(1.1);
    opacity: 1;
}

.sticker-card:hover {
    border-bottom-color: #ffc107; /* Gold (main color) */
    box-shadow: 0 4px 20px rgba(202, 171, 5, 0.2); /* Gold shadow */
}

.sticker-card:hover .sticker-name {
    color: #ffc107; /* Gold (main color) */
    background: rgba(22, 22, 22, 0.9); /* Slightly darker background */
}

.spinner-border-sm {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
    color: #323232; /* Dark gray for text-dark */
}

.nav-tabs {
    border-bottom: 1px solid #767676;
}

.nav-tabs .nav-link {
    color: white;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: white;
    background-color: #242424;
    border-color: #767676;
}

.pagination .page-link {
    color: #ffc107; /* Gold for the text */
    background-color: #0e0e0e; /* Very dark background (bg-color) */
    border: 1px solid #161616; /* Dark border (bg-nav) */
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: white; /* White text on hover */
    background-color: #292929; /* Slightly lighter dark background (btn-primary:hover) */
    border-color: #ffc107; /* Gold border on hover */
}

.pagination .page-item.active .page-link {
    color: white; /* White text for active page */
    background-color: #ffc107; /* Gold background */
    border-color: #ffc107; /* Gold border for active page */
}

.pagination .page-item.disabled .page-link {
    color: #767676; /* Gray text for disabled */
    background-color: #161616; /* Dark background (bg-nav) */
    border-color: #161616; /* Dark border for disabled */
}

.skin-team {
    position: absolute;
    left: 0;
    margin: .5rem;
    border: none;
    color: white;
    z-index: 1;
    padding: 5px;
    text-shadow: 0 0 5px black, 0 0 5px black;
    background-color: #323232;
    padding-inline: .5rem;
    line-height: 1;
    border-radius: 100px;
    transition: all cubic-bezier(0.165, 0.84, 0.44, 1) .3s;
}

#select-team-modal .btn-outline-primary:hover, #select-team-body .btn-outline-primary:hover {
    background-color: #292929;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#select-team-modal .btn-outline-primary, #select-team-body .btn-outline-primary {
    padding: 5px 20px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #242424;
    color: #ffffff;
    margin-right: 10px;
    min-width: 75px;
    font-weight: 600;
}

#select-team-body .btn-outline-primary {
    background-color: #242424
}

#select-team-modal .selected-team, #select-team-body .selected-team {
    background-color: #323232;
    color: rgba(var(--text), 1)
}
