/* Tree view specific styles */
.tree-item {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
}

.tree-item:hover {
    background-color: rgba(0,0,0,0.05);
}

.tree-item i {
    margin-right: 8px;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.tree-item i.fa-chevron-down {
    transform: rotate(90deg);
}

.category-item, .era-item, .itemgroup-item {
    list-style: none;
}

.eras-list, .itemgroups-list {
    padding-left: 20px;
}

.itemgroup-item i.fa-circle {
    font-size: 6px;
}

.results-view {
    padding: 20px;
}

/* Layout styles */
.main-header {
    background: var(--dark);
    color: var(--light);
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 60px;
}

.layout-container {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 300px;
    background: var(--light);
    border-right: 1px solid #ddd;
    transition: transform 0.3s ease;
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
}

.sidebar.collapsed {
    transform: translateX(-270px);
}

.menu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    padding: 1rem;
    cursor: pointer;
    background: var(--light);
    border-left: 1px solid #ddd;
}

.main-content {
    flex: 1;
    margin-left: 300px;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 30px;
}


.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.results-table th,
.results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
}

.results-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.results-table th:first-child {
    border-top-left-radius: 8px;
}

.results-table th:last-child {
    border-top-right-radius: 8px;
}

.results-table tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.results-table tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.results-table tr:hover {
    background-color: #f8f9fa;
}

.results-table tr:last-child td {
    border-bottom: none;
}

.item-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    padding: 20px;
}

.item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.item h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.item p {
    color: #666;
    margin: 0;
}

.view-all-link {
    margin: 15px 0;
}

.view-all-link a {
    color: #007bff;
    text-decoration: none;
}

.view-all-link a:hover {
    text-decoration: underline;
}

.all-results {
    padding: 20px;
}

.all-results h3 {
    margin: 30px 0 15px;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}