:root {
    --rust-100: #ffd2b5;
    --rust-300: #ff9466;
    --rust-400: #ff7542;
    --rust-500: #dd5732;
    --rust-600: #b83a1f;
    --rust-700: #8c2d18;
    --rust-800: #5e1e11;
    --rust-900: #3a140a;
    --dark-bg: #181818;
    --card-bg: #252525;
}

body {
    background-color: var(--dark-bg);
    color: #e0e0e0;
}

.rust-text {
    color: var(--rust-400);
}

.rust-bg {
    background-color: var(--rust-600);
}

.rust-bg:hover {
    background-color: var(--rust-700);
}

.dark-card {
    background-color: var(--card-bg);
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.dark-card:hover {
    border-color: var(--rust-500);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(221, 87, 50, 0.2);
}

.pagination-active {
    background-color: var(--rust-600);
}

.search-input, .select-input {
    background-color: #2d2d2d;
    border: 1px solid #444;
    color: #e0e0e0;
}

.search-input:focus, .select-input:focus {
    border-color: var(--rust-500);
    outline: none;
}

/* Checkbox styling */
.checkbox-input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background-color: #2d2d2d;
    border: 1px solid #444;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.checkbox-input:checked {
    background-color: var(--rust-600);
    border-color: var(--rust-500);
}

.checkbox-input:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Loading animation */
.loader {
    border: 4px solid #333;
    border-top: 4px solid var(--rust-500);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

/* Image loader */
.img-loader {
    border: 2px solid #333;
    border-top: 2px solid var(--rust-500);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -15px;
}

@media (max-width: 640px) {
    .img-loader {
        width: 20px;
        height: 20px;
        margin-top: -10px;
        margin-left: -10px;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Quality value styling */
.quality-value {
    font-size: 0.75rem;
    font-weight: bold;
    /* Color will be set inline based on tier */
}

.karma-value {
    font-size: 0.7rem;
    color: #4CAF50;
    display: block;
}

/* Unwanted item styling */
.unwanted-tag {
    font-size: 0.75rem;
    font-weight: bold;
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.item-card-small.unwanted {
    opacity: 0.8;
}

/* Smaller card adjustments */
.item-card-small {
    position: relative;
}

.item-card-small h3 {
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-card-small p {
    font-size: 0.7rem;
}

.item-card-small .img-container {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Mobile-specific adjustments */
@media (max-width: 640px) {
    .item-card-small .p-2 {
        padding: 0.35rem;
    }
    
    .item-card-small h3 {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }
    
    .item-card-small .img-container {
        height: 50px;
    }
    
    .quality-value {
        font-size: 0.7rem;
    }
    
    .karma-value {
        font-size: 0.65rem;
    }
    
    .unwanted-tag {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
}

.item-img {
    opacity: 0;
    transition: opacity 0.3s ease;
    max-height: 100%;
    max-width: 100%;
}

.item-img.loaded {
    opacity: 1;
}

/* Removed as it's redefined above */