// Sidebar Styles
// Using direct color values

.vb-edit-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 10;
    overflow-y: auto;
    padding: 1rem;

    [data-bs-theme="dark"] & {
        background: #1e293b;
    }
}

.vb-shortcode-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vb-shortcode-item {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;

    [data-bs-theme="dark"] & {
        background: #1e293b;
        border-color: #475569;
    }

    &:hover {
        border-color: #6c757d;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }

    &.active {
        border-color: #206bc4;
        background: rgba(32, 107, 196, 0.1);

        [data-bs-theme="dark"] & {
            background: rgba(32, 107, 196, 0.2);
        }
    }

    .vb-item-drag-handle {
        cursor: move;
        color: #6c757d;
        flex-shrink: 0;

        &:hover {
            color: #212529;

            [data-bs-theme="dark"] & {
                color: #f8f9fa;
            }
        }
    }

    .vb-item-icon {
        width: 40px;
        height: 40px;
        background: #f8f9fa;
        border-radius: 0.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;

        [data-bs-theme="dark"] & {
            background: #334155;
        }

        i {
            font-size: 1.25rem;
            color: #6c757d;
        }
    }

    .vb-item-content {
        flex: 1;
        min-width: 0;
    }

    .vb-item-name {
        font-weight: 500;
        font-size: 0.875rem;
        margin: 0 0 0.25rem 0;
        color: #212529;

        [data-bs-theme="dark"] & {
            color: #f8f9fa;
        }
    }

    .vb-item-preview {
        font-size: 0.75rem;
        color: #6c757d;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .vb-item-actions {
        display: flex;
        gap: 0.25rem;
        flex-shrink: 0;
    }
}

.vb-panel-content {
    .form-group,
    .mb-3 {
        margin-bottom: 1rem;

        label {
            display: block;
            font-weight: 500;
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
        }

        textarea {
            resize: vertical;
            min-height: 100px;
        }

        .form-text {
            font-size: 0.75rem;
            color: #6c757d;
            margin-top: 0.25rem;
        }
    }
}

.vb-shortcode-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;

    .vb-shortcode-type {
        background: #ffffff;
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
        padding: 1rem;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s;

        [data-bs-theme="dark"] & {
            background: #1e293b;
            border-color: #475569;
        }

        &:hover {
            border-color: #206bc4;
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        }

        .vb-type-icon {
            width: 48px;
            height: 48px;
            background: #f8f9fa;
            border-radius: 0.375rem;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 0.5rem;

            [data-bs-theme="dark"] & {
                background: #334155;
            }

            i {
                font-size: 1.5rem;
                color: #6c757d;
            }
        }

        .vb-type-name {
            font-weight: 500;
            font-size: 0.875rem;
            color: #212529;
            margin-bottom: 0.25rem;

            [data-bs-theme="dark"] & {
                color: #f8f9fa;
            }
        }

        .vb-type-description {
            font-size: 0.75rem;
            color: #6c757d;
        }
    }
}

// Sortable.js drag styles
.sortable-ghost {
    opacity: 0.4;
}

.sortable-drag {
    opacity: 1 !important;
}
