@mixin panel-footer {
    padding: 1rem;
    border-top: 1px solid var(--color-divider-subtle, #333);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    background-color: var(--color-nodes-sidepanel-bg, #1a1a1a);
    margin-top: auto;
}

@mixin primary-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--accent-color, #685fff);
    color: #fff;
    min-width: 80px;

    &:hover:enabled {
        filter: brightness(1.1);
        transform: translateY(-1px);
    }

    &:active:enabled {
        transform: translateY(0);
    }

    &:disabled {
        background-color: #666;
        cursor: not-allowed;
        opacity: 0.5;
        transform: none;
    }
}

@mixin secondary-button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-divider-subtle, #333);
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: #ccc;
    min-width: 80px;

    &:hover {
        background: var(--color-divider-subtle, #333);
        color: #fff;
        transform: translateY(-1px);
    }

    &:active {
        transform: translateY(0);
    }
}

@mixin danger-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #dc3545;
    color: #fff;
    min-width: 80px;

    &:hover:enabled {
        background-color: #c82333;
        transform: translateY(-1px);
    }

    &:active:enabled {
        transform: translateY(0);
    }

    &:disabled {
        background-color: #666;
        cursor: not-allowed;
        opacity: 0.5;
        transform: none;
    }
}

@mixin icon-button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #2a2a2a;
    border: none;
    transition: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);

    &:hover {
        background-color: #3a3a3a;
    }

    &:active:not(.disabled) {
        transform: scale(0.85);
        background-color: #444;
    }

    i {
        font-size: 16px;
        color: #aaa;
    }

    &:hover i {
        color: #fff;
    }
}

@mixin panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

@mixin section-header {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-divider-subtle, #333);
}

@mixin form-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.panel-footer {
    @include panel-footer;
}

.panel-content {
    @include panel-content;
}

.section-header {
    @include section-header;
}

.form-container {
    @include form-container;
}

.btn-primary {
    @include primary-button;
}

.btn-secondary {
    @include secondary-button;
}

.btn-danger {
    @include danger-button;
}

.btn-icon {
    @include icon-button;
}
