
/* ... existing code ... */

/* Filters Accordion Styles */
.filters-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

details {
    background: var(--bg-color); /* Slightly lighter/darker than card-bg */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

details[open] {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

summary {
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none; /* Hide default triangle */
    user-select: none;
    background: rgba(255, 255, 255, 0.03);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: 'expand_more';
    font-family: 'Material Icons';
    font-size: 18px;
    color: var(--text-dim);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

.accordion-content {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
    background: var(--card-bg);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ensure inputs inside accordion fit nicely */
.accordion-content input[type="text"],
.accordion-content input[type="number"],
.accordion-content select {
    width: 100%;
    box-sizing: border-box; /* Important for padding */
}

/* Tab Readability Fix */
.main-tab {
    color: rgba(255, 255, 255, 0.75) !important; /* Brighter inactive text */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Text shadow for contrast */
    background: rgba(40, 40, 50, 0.6); /* Slightly darker bg for inactive tabs */
    border: 1px solid rgba(255,255,255,0.1);
}

body[data-theme="light"] .main-tab {
    color: #4b5563 !important;
    text-shadow: none;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.main-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

body[data-theme="light"] .main-tab:hover {
    background: #e5e7eb;
    color: #111827 !important;
}

.main-tab.active {
    background: var(--primary) !important;
    color: #1a1a24 !important; /* Dark text on gold/primary */
    text-shadow: none;
    border-color: var(--primary);
    font-weight: 700;
}

body[data-theme="light"] .main-tab.active {
    color: #fff !important; /* White text on blue primary in light mode if primary is blue */
}

/* Specific fix for checkbox labels in accordions */
.accordion-content label {
    margin-bottom: 0; /* Remove extra margin from label blocks */
    padding: 4px 0;
}
