/* Styles pour l'arborescence des thèmes */

.theme-tree-container {
    margin: 1rem 0;
}

.theme-tree-controls {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
    display: flex;
    gap: 0.5rem;
}

.theme-tree {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.theme-tree-node {
    margin: 0;
    padding: 0;
}

.theme-node-content {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.theme-node-content:hover {
    background-color: #f8f9fa;
}

.tree-toggle {
    background: none;
    border: none;
    padding: 0.25rem;
    margin-right: 0.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
    border-radius: 0.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tree-toggle:hover {
    background-color: #e9ecef;
    color: #495057;
}

.tree-toggle.expanded {
    color: #0d6efd;
}

.tree-spacer {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

.theme-node-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-node-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex: 1;
    transition: color 0.2s ease;
}

.theme-node-link:hover {
    color: #0d6efd;
    text-decoration: none;
}

.theme-node-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.75rem;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.theme-node-name {
    font-weight: 500;
    margin-right: 0.5rem;
}

.theme-node-description {
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
}

.theme-node-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-count-mini {
    background: #e9ecef;
    color: #495057;
    padding: 0.125rem 0.375rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.theme-tree-children {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 1.5rem;
    border-left: 2px solid #e9ecef;
    padding-left: 1rem;
}

/* Indentation visuelle par niveau */
.theme-tree-node[data-level="0"] .theme-node-content {
    padding-left: 0;
}

.theme-tree-node[data-level="1"] .theme-node-content {
    padding-left: 0;
}

.theme-tree-node[data-level="2"] .theme-node-content {
    padding-left: 0;
}

/* Animation pour l'ouverture/fermeture */
.theme-tree-children {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* États des boutons de contrôle */
.theme-tree-controls .btn {
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .theme-tree-children {
        margin-left: 1rem;
        padding-left: 0.5rem;
    }
    
    .theme-node-description {
        display: none;
    }
    
    .theme-tree-controls {
        flex-direction: column;
    }
}