/********************************************************************************
 * Copyright (C) 2025 EclipseSource GmbH.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * This Source Code may also be made available under the following Secondary
 * Licenses when the conditions for such availability set forth in the Eclipse
 * Public License v. 2.0 are satisfied: GNU General Public License, version 2
 * with the GNU Classpath Exception which is available at
 * https://www.gnu.org/software/classpath/license.html.
 *
 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
 ********************************************************************************/

/* Hierarchical pattern for nested expandable sections */

.ai-hierarchical-configuration-main {
    padding: var(--theia-ui-padding);
    height: 100%;
    overflow: auto;
}

/* Additional hierarchical-specific expandable section styles */
.ai-expandable-section .ai-expandable-section {
    margin-left: var(--theia-ui-padding);
    border-left: var(--theia-border-width) solid var(--theia-widget-border);
    padding-left: var(--theia-ui-padding);
}

.ai-expandable-section-header {
    transition: background-color 0.15s ease;
}

.ai-expandable-section-content {
    animation: expandContent 0.2s ease-out;
}

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

/* Responsive */
@media (max-width: 600px) {
    .ai-hierarchical-configuration-main {
        padding: calc(var(--theia-ui-padding) / 2);
    }

    .ai-expandable-section .ai-expandable-section {
        margin-left: calc(var(--theia-ui-padding) / 2);
        padding-left: calc(var(--theia-ui-padding) / 2);
    }
}
