/* General Body Styles */
body {
    transition: background-color 0.3s, color 0.3s;
}

/* Sidebar Styles */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    min-height: 100vh;
    transition: all 0.3s;
}

#sidebar .sidebar-header {
    border-bottom: 1px solid #dee2e6;
}

#sidebar ul.components a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

#sidebar ul.components a:hover {
    background-color: #e9ecef;
}

#sidebar ul.components li.active > a, a[aria-expanded="true"] {
    background-color: #0d6efd;
    color: white;
}

/* Main Content Styles */
#content {
    width: 100%;
}

/* Card Image Styles */
.card-img-top {
    width: 50px;
    height: auto;
    border-radius: 5px;
}

/* Image Tooltip */
#image-tooltip {
    max-width: 250px;
    border: 2px solid #0d6efd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Dark Mode Styles */
[data-bs-theme="dark"] {
    background-color: #212529;
    color: #dee2e6;
}

[data-bs-theme="dark"] #sidebar {
    background-color: #343a40 !important;
    border-color: #495057 !important;
}

[data-bs-theme="dark"] #sidebar .sidebar-header {
    border-color: #495057;
}

[data-bs-theme="dark"] #sidebar ul.components a {
    color: #dee2e6;
}

[data-bs-theme="dark"] #sidebar ul.components a:hover {
    background-color: #495057;
}

[data-bs-theme="dark"] .card {
    background-color: #343a40;
    border-color: #495057;
}

[data-bs-theme="dark"] .table {
    color: #dee2e6;
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: var(--bs-table-striped-bg);
    color: var(--bs-table-striped-color);
}
/* Summary Stats Customization */
#summary-stats .card {
    margin-bottom: 1rem;
}

/* Ensure chart is responsive within its container */
#rarity-pie-chart {
    max-height: 350px; /* Adjust as needed for pie chart */
}

#summary-stats .card-body {
    padding: 0.5rem;
}

#summary-stats .card-title {
    font-size: 0.75rem;
    margin-bottom: 0.1rem;
}

#summary-stats .card-text {
    font-size: 1rem;
}


.table td, .table th {
    word-break: break-word;
    vertical-align: middle;
    font-size: 0.8rem; /* Smaller font for table content */
}

#rarity-by-account-table-head th {
    white-space: nowrap;
}

/* Sortable Table Header */
.sortable {
    cursor: pointer;
    position: relative;
}

.sortable:hover {
    background-color: #f1f1f1;
}

[data-bs-theme="dark"] .sortable:hover {
    background-color: #495057;
}

.sortable .bi {
    float: right;
    margin-left: 5px;
    color: #ccc;
}

.sortable.asc .bi-arrow-down-up, .sortable.desc .bi-arrow-down-up {
    display: none;
}

.sortable .bi-arrow-up, .sortable .bi-arrow-down {
    display: none;
}

.sortable.asc .bi-arrow-up {
    display: inline-block;
    color: #333;
}

.sortable.desc .bi-arrow-down {
    display: inline-block;
    color: #333;
}

[data-bs-theme="dark"] .sortable.asc .bi-arrow-up,
[data-bs-theme="dark"] .sortable.desc .bi-arrow-down {
    color: #dee2e6;
}
/* Collapsible Sidebar Styles */
@media (max-width: 991.98px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
    }
}

#sidebar-toggle {
    margin-right: 1rem;
}
#rarity-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

#rarity-filter .form-check {
    flex-shrink: 0;
}

.card.mb-4 .card-body {
    padding: 1rem;
}
@media (max-width: 767.98px) {
    .table-responsive .table th:nth-child(4),
    .table-responsive .table td:nth-child(4) {
        display: none;
    }
}
.rarity-icon {
    height: 1em;
    width: auto;
    vertical-align: middle;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.chart-legend-color {
    width: 15px;
    height: 15px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 3px;
}
.rarity-icon-set {
    display: inline-flex;
    align-items: center;
}