body {
    font-family: 'Inter', sans-serif;
}

/* Collapsible sidebar sections */
.sec-body {
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
    max-height: 600px;
    opacity: 1;
}
.sec-body.collapsed {
    max-height: 0 !important;
    opacity: 0;
    padding-bottom: 0 !important;
}
.section-toggle .material-symbols-outlined:last-child {
    transition: transform 0.2s ease;
}
.section-toggle.collapsed .material-symbols-outlined:last-child {
    transform: rotate(-90deg);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #272d3a;
    border-radius: 2px;
    outline: none;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #1f68f9;
    cursor: pointer;
    border-radius: 50%;
}

#viewport-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.drop-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    background: rgba(31, 104, 249, 0.15);
    border: 3px dashed #1f68f9;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.drop-overlay span {
    font-size: 1.2rem;
    color: #1f68f9;
    font-weight: 600;
}

/* Menu dropdowns */
.menu-dropdown {
    animation: menuFadeIn 0.1s ease-out;
}

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

.menu-item:hover {
    background: rgba(31, 104, 249, 0.1);
}

/* Modal overlay */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #161d2b;
    border: 1px solid #272d3a;
    border-radius: 0.75rem;
    padding: 1.5rem;
    min-width: 360px;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}


/* Models library tree */
.tree-branch + .tree-branch {
    border-top: 1px solid #202838;
}

.tree-folder {
    color: #cbd5e1;
    transition: background 0.18s ease, color 0.18s ease;
}

.tree-folder:hover {
    background: rgba(255,255,255,0.04);
}

.tree-folder .tree-arrow {
    transition: transform 0.18s ease;
}

.tree-folder.collapsed .tree-arrow {
    transform: rotate(-90deg);
}

.tree-children {
    padding: 0.125rem 0 0.375rem;
}

.tree-file {
    position: relative;
    color: #94a3b8;
    transition: background 0.18s ease, color 0.18s ease;
}

.tree-file::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #243041;
}

.tree-file::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    width: 0.9rem;
    height: 1px;
    background: #243041;
}

.tree-file:hover {
    background: rgba(31, 104, 249, 0.08);
    color: #e2e8f0;
}

.tree-file.active {
    background: rgba(31, 104, 249, 0.12);
    color: #ffffff;
}
