body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #888888;
    color: #ddd;
}

h1 {
    color: #c2c2c2;
    text-align: center;
}

.container {
    /* max-width: 1600px; */
    margin: 0 auto;
    background-color: rgb(78, 78, 78);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    position: relative;
}

th,
td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
    font-weight: bold;
}

th {
    background-color: #202020;
    color: white;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
    padding-right: 25px;
}

th:hover {
    background-color: #141414;
}

th.sortable::after {
    content: ' ↕';
    position: absolute;
    right: 8px;
    opacity: 0.5;
}

th.sort-asc::after {
    content: ' ↑';
    opacity: 1;
}

th.sort-desc::after {
    content: ' ↓';
    opacity: 1;
}

tr:nth-child(even) {
    background-color: #555555;
    color: #ddd;
}

tr:hover {
    background-color: #8f8f8f;
}

table td:nth-child(8) {
    text-align: center;
}

table td:nth-child(9) {
    text-align: right;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    margin-bottom: 20px;
}

select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    font-size: 14px;
}

select:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.info {
    margin-top: 20px;
    padding: 15px;
    background-color: #fc5d5d;
    border-left: 4px solid #2196F3;
    border-radius: 4px;
}

.filters {
    background-color: #424242;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
}

.filter-group {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
    vertical-align: top;
}

.filter-group>label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #e2e2e2;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-title {
    padding: 8px 16px;
    border: 2px solid #dddddd;
    border-radius: 4px;
    background-color: #555;
    color: #ddd;
    cursor: pointer;
    font-weight: bold;
    font-size: 12pt;
    transition: all 0.2s;
    text-align: left;
}

.filter-title:hover {
    background-color: #7c7c7c;
    border-color: #a3a3a3;
}

/* .filter-title.active {
    background-color: #368f39;
    border-color: #368f39;
    color: white;
} */

.filter-button {
    padding: 8px 16px;
    border: 2px solid #666;
    border-radius: 4px;
    background-color: #555;
    color: #ddd;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-align: left;
}

.filter-button:hover {
    background-color: #666;
    border-color: #888;
}

.filter-button.active {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.filter-button[data-filter="capacity"] {
    text-align: center;
}

/* Rarity column styles */
.rarity-common {
    background-color: #3C7526;
    color: #ffffff;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.rarity-rare {
    background-color: #152A7D;
    color: #ffffff;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.rarity-epic {
    background-color: #7E1E7C;
    color: #ffffff;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.rarity-legendary {
    background-color: #EE8C0A;
    color: #ffffff;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.hidden {
    display: none;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #cecece;
    font-style: italic;
}

.filter-toggle {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.filter-toggle:hover {
    background-color: #45a049;
}

.filters.collapsed {
    display: none;
}

.objectives {
    padding: 10px;
    margin-bottom: 10px;
}

.options-row {
    display: flex;
    gap: 15px;
}