.sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    min-height: calc(100vh - 56px);
    border-left: 1px solid #dee2e6;
}

.card {
    margin-bottom: 20px;
}

.profit {
    color: green;
}

.loss {
    color: red;
}

#inventory-table {
    width: 100%;
}

.dashboard-container,
.inventory-container {
    padding: 20px;
}

/* New styles for CS2 Investment Tracker */
.item-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.search-container {
    position: relative;
}

.search-results {
    min-height: 200px;
}

.badge {
    font-size: 0.7em;
    margin-right: 2px;
}

#price-chart {
    max-height: 400px;
}

.quick-stats {
    font-size: 0.9em;
}

.rarity-covert { background-color: #eb4b4b !important; }
.rarity-classified { background-color: #d32ce6 !important; }
.rarity-restricted { background-color: #8847ff !important; }
.rarity-mil-spec { background-color: #4b69ff !important; }
.rarity-industrial { background-color: #5e98d9 !important; }
.rarity-consumer { background-color: #b0c3d9 !important; }

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Additional general styles */
body {
    background-color: #f8f9fa;
}

.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.navbar-brand {
    font-weight: bold;
}

/* Item image styles */
.item-image {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
    padding: 5px;
}

.card-img-top {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Fallback for broken images */
img[onerror] {
    transition: opacity 0.3s ease;
}

/* Inventory table image styling */
.inventory-table img {
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* Search suggestion images */
.list-group-item img {
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* Filter sidebar styles */
.filters-sidebar {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.form-select-sm {
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Search results grid */
.search-results .row {
    margin: 0;
}

.search-results .col-md-6,
.search-results .col-lg-4 {
    padding: 0.5rem;
}

/* Item card hover effects */
.item-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

/* Badge spacing */
.badge {
    margin-right: 4px;
    margin-bottom: 2px;
}

/* Filter button styles */
#random-items {
    position: relative;
}

#random-items:hover {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-3 {
        margin-bottom: 20px;
    }
    
    .search-results .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Loading spinner */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Filter form styling */
.card-body form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.card-body form .form-select {
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.card-body form .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}