/* ==========================================================================
   File: Tool/3d/ui/toolbar.css
   KHALA STUDIO — BORDERLESS TOOL RAIL & DRAWER
   ========================================================================== */

.threed-pro-toolbar {
    width: 56px;
    background: #18181a;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 6px;
    flex-shrink: 0;
    z-index: 40;
}

.threed-tool-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #8c8c94;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.threed-tool-btn.active {
    background: #0A84FF;
    color: #ffffff;
}

.threed-tool-btn .material-symbols-outlined {
    font-size: 20px;
}

.threed-tool-btn-sub {
    font-size: 0.625rem;
    font-weight: 500;
    margin-top: 1px;
}

.threed-tool-divider {
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin: 4px 0;
    border-radius: 1px;
}

/* Resource Drawer */
.threed-resource-drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 56px;
    width: 290px;
    background: #18181a;
    z-index: 35;
    display: none;
    flex-direction: column;
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.6);
}

.threed-resource-drawer.open {
    display: flex;
}

.threed-drawer-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
}

.threed-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.threed-drawer-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.threed-drawer-card {
    background: #202024;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: none;
    display: flex;
    flex-direction: column;
}

.threed-drawer-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.threed-drawer-card-title {
    padding: 8px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #a1a1aa;
    text-align: center;
}