.create-agent {
    background: var(--color-sidenav-background);
    border-radius: 12px;
    width: 100%;
    height: 100%;
    color: var(--color-text-primary);
    display: flex;
    max-height: 90vh;
    flex-direction: column;

    &__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
    }

    &__title {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 400;
        color: var(--color-text-primary);
    }

    &__close-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    &__body {
        display: flex;
        flex: 1;
        overflow: hidden;
        min-height: 0;
    }

    &__content {
        flex: 1;
        overflow-y: auto;
        padding: 1.5rem;
        padding-top: 5px;

        // Custom scrollbar styling for content area
    }

    &__field {
        margin-bottom: 1rem;

        &--full-width {
            width: 100%;
        }

        &--agent-llm {
            margin-bottom: 1.25rem;
        }
    }

    &__field-label {
        display: block;
        font-size: 0.9rem;
        color: var(--color-text-primary);
        margin-bottom: 0.5rem;
        font-weight: 400;
    }

    &__sidebar {
        width: 500px;
        flex-shrink: 0;
        padding: 1.5rem;
        padding-top: 0;
        border-left: 1px solid var(--color-border, #e0e0e0);
        overflow-y: auto; // Account for header and footer\
        max-height: calc(90vh - 200px);
    }

    &__settings {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    &__setting {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    &__setting-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
    }

    &__setting-label {
        font-size: 0.9rem;
        color: var(--color-text-primary);
        display: flex;
        align-items: center;
        gap: 0.25rem;
        font-weight: 400;

        &--with-margin {
            margin-bottom: 0.5rem;
        }
    }

    &__help-icon {
        font-size: 1rem;
        width: 1rem;
        height: 1rem;
        color: var(--color-text-secondary, #666);
        cursor: help;
        opacity: 0.7;
        transition: opacity 0.2s ease;

        &:hover {
            opacity: 1;
        }
    }

    &__setting-value {
        font-size: 0.9rem;
        color: var(--color-text-secondary, #666);
        font-weight: 500;
    }

    &__slider-container {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    &__llm-option {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    &__llm-icon {
        flex-shrink: 0;
    }

    &__llm-name {
        font-size: 0.875rem;
        color: var(--color-text-primary);
        font-weight: 400;
    }

    &__llm-custom {
        font-size: 0.75rem;
        color: var(--color-text-secondary);
        opacity: 0.8;
    }

    &__llm-temperature {
        font-size: 0.75rem;
        color: var(--color-text-secondary);
        margin-left: auto;
        font-weight: 400;
    }

    &__footer {
        display: flex;
        justify-content: flex-end;
        padding: 1.5rem;
        gap: 0.75rem;
    }

    &__button {
        &--cancel {
            color: var(--color-text-secondary);
        }

        &--submit {
            background-color: var(--accent-color);
            color: white;
        }
    }
}

// Material form field customizations
::ng-deep {
    .create-agent {
        .mat-mdc-select {
            .mat-mdc-select-trigger {
                background-color: var(--color-input-background);
                border: 1px solid var(--color-input-border);
                border-radius: 4px;
                min-height: 42px;
                padding: 0 12px;
            }

            .mat-mdc-select-value {
                color: var(--color-text-primary);
            }

            .mat-mdc-select-placeholder {
                color: var(--color-text-secondary);
            }

            .mat-mdc-select-arrow {
                color: var(--color-text-secondary);
            }
        }
    }
}
