/* Styles Tree Specific Styles */

/* Style indicators for different style types */
.style-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 100px;
    margin-right: 0px;
    flex-shrink: 0;
    border: 1px solid var(--border-default);
}

.text-indicator {
    background: var(--indicator-text);
    color: white;
    border-color: var(--indicator-text-alt);
}

.fill-indicator {
    background: var(--indicator-fill);
    color: white;
    border-color: var(--indicator-muted);
    /* Background color will be overridden by inline styles for actual colors */
    position: relative;
    overflow: hidden;
}

/* Ensure gradient definition with subtle overlay */
.fill-indicator[style*="linear-gradient"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    border-radius: inherit;
    pointer-events: none;
}

.effect-indicator {
    background: var(--indicator-effect);
    color: white;
    border-color: var(--indicator-muted);
}

.stroke-indicator {
    background: var(--indicator-stroke);
    color: white;
    border-color: var(--indicator-muted);
}

.grid-indicator {
    background: var(--indicator-grid);
    color: white;
    border-color: var(--indicator-muted);
}

.default-indicator {
    background: var(--indicator-default);
    color: white;
    border-color: var(--indicator-muted);
}


/* Style item specific styling */
.style-item {
    position: relative;
    border-radius: 8px;

}

.style-header {
    transition: all 0.2s ease;
}

.style-header:hover {
    background: var(--bg-interactive);
}

.style-header.selected {
    background: var(--accent-button);
    color: white;
}

.style-header.selected .style-indicator {
    border-color: var(--text-primary);
}

/* Style description info icon */
.style-description {
    margin-left: auto;
    padding: 2px 4px;
    color: var(--text-muted);
    cursor: help;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.style-description:hover {
    opacity: 1;
    color: var(--accent-primary);
}

/* Style visibility states */
.style-header.style-visible {
    opacity: 1;
    border-left: 2px solid var(--accent-primary);
}

.style-header.style-hidden {
    opacity: 0.4;
    border-left: 2px solid #444;
}

/* Category nodes for styles */
.category-node {
    margin-bottom: 12px;
}

.category-children {
    margin-top: 8px;
}

.category-children .style-item {
    margin-bottom: 4px;
}

/* Responsive adjustments for style indicators */
@media (max-width: 768px) {
    .style-indicator {
        width: 14px;
        height: 14px;
        font-size: 9px;
        margin-right: 6px;
    }
}
